[Bug 407] assign local vars and catch returncode
bugzilla at busybox.net
bugzilla at busybox.net
Fri Jun 19 15:36:30 UTC 2009
https://bugs.busybox.net/show_bug.cgi?id=407
--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com> 2009-06-19 15:36:29 UTC ---
You example is unclear.
Do you mean something like this?
myfunc() { local VAR="$(false)" || { echo FAIL; }; echo DONE; }; myfunc
It does not print FAIL in bash either.
This does:
myfunc() { VAR="$(false)" || { echo FAIL; }; echo DONE; }; myfunc
I tested ash and hush and both match bash.
--
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