[Bug 9081] ash return in function exits shell instead of function
bugzilla at busybox.net
bugzilla at busybox.net
Sun Jul 10 02:03:32 UTC 2016
https://bugs.busybox.net/show_bug.cgi?id=9081
Denys Vlasenko <vda.linux at googlemail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com> ---
bash 3.x and 4.x works the same.
"return" with no exitcode uses exitcode of the last command, in this case
"false" sets exitcode to 1.
with -e, such return qualifies as failing command, and it makes shell exit.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list