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.09
1 files changed, 9 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..bf47ca044306
--- /dev/null
+++ b/bin/sh/tests/execution/fork1.0
@@ -0,0 +1,9 @@
+
+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