busybox/shell/hush_test/hush-misc/func_return1.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

12 lines
105 B
Plaintext
Executable File

f1() {
while return 2; do :; done
}
f1
echo Two:$?
f2() {
while :; do return 2; done
}
f2
echo Two:$?