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