xref: /freebsd/bin/sh/tests/execution/shellproc1.0 (revision ab0b9f6b3073e6c4d1dfbf07444d7db67a189a96)
1# $FreeBSD$
2
3T=`mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX"` || exit
4trap 'rm -rf "${T}"' 0
5cat <<EOF >"$T/testshellproc"
6printf 'this '
7echo is a test
8EOF
9chmod 755 "$T/testshellproc"
10PATH=$T:$PATH
11[ "`testshellproc`" = "this is a test" ]
12