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:
Denys Vlasenko
2017-07-31 18:02:28 +02:00
parent d0fff9155b
commit 5b3d2eb327
9 changed files with 52 additions and 8 deletions

View File

@@ -0,0 +1,2 @@
Two:2
Two:2

View File

@@ -0,0 +1,6 @@
f1() { return 2; }
f1
echo Two:$?
false
true | f1
echo Two:$?