1*e0f5c138SJilles Tjoelker# $FreeBSD$ 2*e0f5c138SJilles Tjoelker 3*e0f5c138SJilles TjoelkerT=`mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX"` || exit 4*e0f5c138SJilles Tjoelkertrap 'rm -rf "${T}"' 0 5*e0f5c138SJilles Tjoelkerprintf 'printf "this "\necho is a test\nexit\n\0' >"$T/testshellproc" 6*e0f5c138SJilles Tjoelkerchmod 755 "$T/testshellproc" 7*e0f5c138SJilles TjoelkerPATH=$T:$PATH 8*e0f5c138SJilles Tjoelker[ "`testshellproc`" = "this is a test" ] 9