diff options
author | Rob Landley <rob@landley.net> | 2021-10-21 01:33:03 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-10-21 01:33:03 -0500 |
commit | 018db3feca576afded0da56c9d9c192417833f6a (patch) | |
tree | 0b8f777c434c74391e82cae4a466aaf523bd0c62 /tests | |
parent | d319b974b8d3b91f9df17ae18bfcf27fbc2d336f (diff) | |
download | toybox-018db3feca576afded0da56c9d9c192417833f6a.tar.gz |
If you disable buitins, "env -i env" has no $PATH, so $(which env).
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/env.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/env.test b/tests/env.test index 6d8928d1..30757be4 100755 --- a/tests/env.test +++ b/tests/env.test @@ -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" "" "" |