summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-misc/func3.tests
blob: fa6f26a231065a21ab47f648b2d7ba8d65e7cb45 (plain)
1
2
3
4
5
6
7
8
f() { false; return; echo BAD; };
{ f; echo One:$?; }; echo Zero:$?

f() { false; return; };
f; echo One:$?

f() { return 5; };
f; echo Five:$?