xref: /freebsd/bin/sh/tests/execution/shellproc6.0 (revision e51b3d8e53cee7d6a36e34e1cd4d588593d71b40)
1
2T=`mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX"` || exit
3trap 'rm -rf "${T}"' 0
4printf 'printf "this "\necho is a test\nexit\n\0' >"$T/testshellproc"
5chmod 755 "$T/testshellproc"
6PATH=$T:$PATH
7[ "`testshellproc`" = "this is a test" ]
8