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