From 6a63b625bfa2c0e86c18ccb5bdc71010e24c9829 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 6 Jul 2019 15:54:56 -0500 Subject: Add comment and test. --- tests/env.test | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/env.test') 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 -- cgit v1.2.3