]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - bin/sh/tests/execution/shellproc6.0
MFV 364468:
[FreeBSD/FreeBSD.git] / bin / sh / tests / execution / shellproc6.0
1 # $FreeBSD$
2
3 T=`mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX"` || exit
4 trap 'rm -rf "${T}"' 0
5 printf 'printf "this "\necho is a test\nexit\n\0' >"$T/testshellproc"
6 chmod 755 "$T/testshellproc"
7 PATH=$T:$PATH
8 [ "`testshellproc`" = "this is a test" ]