aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/tests/execution/shellproc6.0
blob: f1527f6d854dc493de881e6d665767da6a74917d (plain) (blame)
1
2
3
4
5
6
7

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