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:
6
shell/hush_test/hush-vars/var_in_pipes.right
Normal file
6
shell/hush_test/hush-vars/var_in_pipes.right
Normal file
@@ -0,0 +1,6 @@
|
||||
b=1
|
||||
b=2
|
||||
b=3
|
||||
b=4
|
||||
b=5
|
||||
b=6
|
7
shell/hush_test/hush-vars/var_in_pipes.tests
Executable file
7
shell/hush_test/hush-vars/var_in_pipes.tests
Executable 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=
|
Reference in New Issue
Block a user