# $FreeBSD: head/tools/regression/bin/sh/execution/shellproc1.0 218205 2011-02-02 22:03:18Z jilles $ T=`mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX"` || exit trap 'rm -rf "${T}"' 0 cat <"$T/testshellproc" printf 'this ' echo is a test EOF chmod 755 "$T/testshellproc" PATH=$T:$PATH [ "`testshellproc`" = "this is a test" ]