xref: /freebsd/bin/sh/tests/execution/shellproc1.0 (revision 06c3fb27)
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