1*3e3895bfSKrzysztof Piecuch# $FreeBSD: head/bin/sh/tests/execution/shellproc6.0 361647 2020-05-30 16:00:49Z jilles $
2*3e3895bfSKrzysztof Piecuch
3*3e3895bfSKrzysztof PiecuchT=`mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX"` || exit
4*3e3895bfSKrzysztof Piecuchtrap 'rm -rf "${T}"' 0
5*3e3895bfSKrzysztof Piecuchprintf 'printf "this "\necho is a test\nexit\n\0' >"$T/testshellproc"
6*3e3895bfSKrzysztof Piecuchchmod 755 "$T/testshellproc"
7*3e3895bfSKrzysztof PiecuchPATH=$T:$PATH
8*3e3895bfSKrzysztof Piecuch[ "`testshellproc`" = "this is a test" ]
9