1 2 3 4 5 6 7 8 9 10 11
f1() { while return 2; do :; done } f1 echo Two:$? f2() { while :; do return 2; done } f2 echo Two:$?