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