busybox/shell/ash_test/ash-misc/func3.tests

9 lines
144 B
Plaintext
Raw Normal View History

f() { false; return; echo BAD; };
{ f; echo One:$?; }; echo Zero:$?
f() { false; return; };
f; echo One:$?
f() { return 5; };
f; echo Five:$?