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