[Bug 407] assign local vars and catch returncode
bugzilla at busybox.net
bugzilla at busybox.net
Sat Jun 20 10:41:02 UTC 2009
https://bugs.busybox.net/show_bug.cgi?id=407
--- Comment #2 from Bastian Bittorf <busybox.20.bastian at spamgourmet.org> 2009-06-20 10:41:01 UTC ---
> Do you mean something like this?
>
> myfunc() { local VAR="$(false)" || { echo FAIL; }; echo DONE; }; myfunc
yes, if 'false' means:
an action, that produces a returncode != 0
> I tested ash and hush and both match bash.
You are right, but this means that bash and hush are
also affected - or is there a reason for "forgetting"
the returncode?
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list