Skip to content

Commit

Permalink
If you disable buitins, "env -i env" has no $PATH, so $(which env).
Browse files Browse the repository at this point in the history
  • Loading branch information
landley committed Oct 21, 2021
1 parent d319b97 commit 018db3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/env.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ FILTER="| egrep '^(WALRUS|BANANA|LETTERS)=' | sort"
testcmd "read" "$FILTER" "BANANA=hello\nLETTERS=\nWALRUS=42\n" "" ""
testcmd "-u" "-u BANANA $FILTER" "LETTERS=\nWALRUS=42\n" "" ""
testcmd "-uu" "-u LETTERS -u WALRUS $FILTER" "BANANA=hello\n" "" ""
testcmd "-i" "-i env" "" "" ""
testcmd "-i" "-i \"$(which env)\"" "" "" ""
testcmd "-i =" "-i one=two three=four $C | sort" \
"one=two\nthree=four\n" "" ""
testcmd "-0" "-i five=six seven=eight $C -0 | sort -z" "five=six\0seven=eight\0" "" ""
Expand Down

0 comments on commit 018db3f

Please sign in to comment.