From bd7c5c0555477d562bc7a4dab9561017a47b615e Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 2 May 2019 18:41:11 -0700 Subject: 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. --- tests/env.test | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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" "" "" -- cgit v1.2.3