aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/tests/execution/fork1.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/tests/execution/fork1.0')
-rw-r--r--bin/sh/tests/execution/fork1.010
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/sh/tests/execution/fork1.0 b/bin/sh/tests/execution/fork1.0
new file mode 100644
index 000000000000..2eeac79ae8c3
--- /dev/null
+++ b/bin/sh/tests/execution/fork1.0
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+shname=${SH%% *}
+shname=${shname##*/}
+
+result=$(${SH} -c 'ps -p $$ -o comm=')
+test "$result" = "ps" || exit 1
+
+result=$(${SH} -c 'ps -p $$ -o comm=; :')
+test "$result" = "$shname" || exit 1