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
This commit is contained in:
Denis Vlasenko
2009-04-03 03:19:15 +00:00
parent f9f7429346
commit 3718168b87
3 changed files with 45 additions and 38 deletions

View File

@@ -0,0 +1,6 @@
b=1
b=2
b=3
b=4
b=5
b=6

View File

@@ -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=