aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/tests/execution/shellproc6.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/tests/execution/shellproc6.0')
-rw-r--r--bin/sh/tests/execution/shellproc6.07
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/sh/tests/execution/shellproc6.0 b/bin/sh/tests/execution/shellproc6.0
new file mode 100644
index 000000000000..f1527f6d854d
--- /dev/null
+++ b/bin/sh/tests/execution/shellproc6.0
@@ -0,0 +1,7 @@
+
+T=`mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX"` || exit
+trap 'rm -rf "${T}"' 0
+printf 'printf "this "\necho is a test\nexit\n\0' >"$T/testshellproc"
+chmod 755 "$T/testshellproc"
+PATH=$T:$PATH
+[ "`testshellproc`" = "this is a test" ]