xref: /freebsd/bin/sh/tests/execution/shellproc6.0 (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
1# $FreeBSD$
2
3T=`mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX"` || exit
4trap 'rm -rf "${T}"' 0
5printf 'printf "this "\necho is a test\nexit\n\0' >"$T/testshellproc"
6chmod 755 "$T/testshellproc"
7PATH=$T:$PATH
8[ "`testshellproc`" = "this is a test" ]
9