busybox/shell/hush_test/hush-misc/func_return2.tests
Denys Vlasenko 5b3d2eb327 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>
2017-07-31 18:02:28 +02:00

7 lines
62 B
Plaintext
Executable File

f1() { return 2; }
f1
echo Two:$?
false
true | f1
echo Two:$?