aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-05-02 18:41:11 -0700
committerRob Landley <rob@landley.net>2019-05-03 11:35:59 -0500
commitbd7c5c0555477d562bc7a4dab9561017a47b615e (patch)
tree42ae7a14d86c4ab011e52f6125c7ee95d733a0e2 /tests
parentd234c98318dc3e85c01092ddadfc9e7acddbbaef (diff)
downloadtoybox-bd7c5c0555477d562bc7a4dab9561017a47b615e.tar.gz
env: fix case where a variable is replaced.
Found when trying to update the toybox prebuilt used for the Android build. Also add the corresponding test.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/env.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/env.test b/tests/env.test
index 3098731d..4df118dd 100755
--- a/tests/env.test
+++ b/tests/env.test
@@ -19,3 +19,5 @@ unset WALRUS BANANA LETTERS FILTER
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" "" ""