diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/env.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/env.test b/tests/env.test index 4df118dd..63b9094d 100755 --- a/tests/env.test +++ b/tests/env.test @@ -21,3 +21,8 @@ testcmd "early fail" '--oops 2> /dev/null ; echo $?' "125\n" "" "" 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 +testcmd "norecurse" 'env PATH="$PWD:$PATH" true hello' "hello\n" "" "" +rm true |