]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - tools/regression/bin/sh/execution/shellproc1.0
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / tools / regression / bin / sh / execution / shellproc1.0
1 # $FreeBSD$
2
3 T=`mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX"` || exit
4 trap 'rm -rf "${T}"' 0
5 cat <<EOF >"$T/testshellproc"
6 printf 'this '
7 echo is a test
8 EOF
9 chmod 755 "$T/testshellproc"
10 PATH=$T:$PATH
11 [ "`testshellproc`" = "this is a test" ]