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