diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/env.test | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/env.test b/tests/env.test index 63b9094d..00b56540 100755 --- a/tests/env.test +++ b/tests/env.test @@ -23,6 +23,8 @@ testcmd "why is this allowed" "=BLAH env | grep '^=BLAH\$'" "=BLAH\n" "" "" testcmd "replace" "A=foo PATH= `which printenv` A" "foo\n" "" "" # env bypasses shell builtins -ln -s "$(which echo)" true +echo "#!$(which sh) +echo \$@" > true +chmod a+x true testcmd "norecurse" 'env PATH="$PWD:$PATH" true hello' "hello\n" "" "" rm true |