]> git.saurik.com Git - apple/shell_cmds.git/blame - sh/tests/execution/shellproc1.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / execution / shellproc1.0
CommitLineData
deb63bfb 1# $FreeBSD: head/bin/sh/tests/execution/shellproc1.0 218205 2011-02-02 22:03:18Z jilles $
71aad674
A
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" ]