aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars/var_in_pipes.tests
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-03 03:19:15 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-03 03:19:15 +0000
commit3718168b87a5bf5009b90b1e1253bec2c7ce9edf (patch)
tree64037be3206c0ce3cb0c68c114828010cd3da367 /shell/hush_test/hush-vars/var_in_pipes.tests
parentf9f74293465e98f2af117a1821a8fbb97cdbc3ed (diff)
downloadbusybox-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/hush-vars/var_in_pipes.tests')
-rwxr-xr-xshell/hush_test/hush-vars/var_in_pipes.tests7
1 files changed, 7 insertions, 0 deletions
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=