hush: fix "true | func_with_return" not allowing return.
function old new delta pseudo_exec_argv 305 312 +7 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
2
shell/ash_test/ash-misc/func_return2.right
Normal file
2
shell/ash_test/ash-misc/func_return2.right
Normal file
@@ -0,0 +1,2 @@
|
||||
Two:2
|
||||
Two:2
|
6
shell/ash_test/ash-misc/func_return2.tests
Executable file
6
shell/ash_test/ash-misc/func_return2.tests
Executable file
@@ -0,0 +1,6 @@
|
||||
f1() { return 2; }
|
||||
f1
|
||||
echo Two:$?
|
||||
false
|
||||
true | f1
|
||||
echo Two:$?
|
Reference in New Issue
Block a user