diff options
Diffstat (limited to 'bin/sh/tests/execution/shellproc7.0')
| -rw-r--r-- | bin/sh/tests/execution/shellproc7.0 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/sh/tests/execution/shellproc7.0 b/bin/sh/tests/execution/shellproc7.0 new file mode 100644 index 000000000000..b5e543826c8a --- /dev/null +++ b/bin/sh/tests/execution/shellproc7.0 @@ -0,0 +1,9 @@ +# Non-POSIX trickery that is widely supported, +# used by https://justine.lol/ape.html + +T=`mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX"` || exit +trap 'rm -rf "${T}"' 0 +printf "MZqFpD='\n\0'\n#'\"\necho this is a test\n" >"$T/testshellproc" +chmod 755 "$T/testshellproc" +PATH=$T:$PATH +[ "`testshellproc`" = "this is a test" ] |
