diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-03 03:19:15 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-03 03:19:15 +0000 |
commit | 3718168b87a5bf5009b90b1e1253bec2c7ce9edf (patch) | |
tree | 64037be3206c0ce3cb0c68c114828010cd3da367 /shell/hush_test | |
parent | f9f74293465e98f2af117a1821a8fbb97cdbc3ed (diff) | |
download | busybox-3718168b87a5bf5009b90b1e1253bec2c7ce9edf.tar.gz |
hush: fix bug with local environment vars in pipes; simplify parse_stream()
function old new delta
parse_stream 1238 1218 -20
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-20) Total: -20 bytes
Diffstat (limited to 'shell/hush_test')
-rw-r--r-- | shell/hush_test/hush-vars/var_in_pipes.right | 6 | ||||
-rwxr-xr-x | shell/hush_test/hush-vars/var_in_pipes.tests | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/var_in_pipes.right b/shell/hush_test/hush-vars/var_in_pipes.right new file mode 100644 index 000000000..faf65bed4 --- /dev/null +++ b/shell/hush_test/hush-vars/var_in_pipes.right @@ -0,0 +1,6 @@ +b=1 +b=2 +b=3 +b=4 +b=5 +b=6 diff --git a/shell/hush_test/hush-vars/var_in_pipes.tests b/shell/hush_test/hush-vars/var_in_pipes.tests new file mode 100755 index 000000000..3f8cd2729 --- /dev/null +++ b/shell/hush_test/hush-vars/var_in_pipes.tests @@ -0,0 +1,7 @@ +b=1 env | grep ^b= +true | b=2 env | grep ^b= +a=1 true | b=3 env | grep ^b= + +(b=4 env) | grep ^b= +(true | b=5 env) | grep ^b= +(a=1 true | b=6 env) | grep ^b= |