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