[Bug 407] assign local vars and catch returncode
bugzilla at busybox.net
bugzilla at busybox.net
Sat Jun 20 16:19:22 UTC 2009
https://bugs.busybox.net/show_bug.cgi?id=407
--- Comment #9 from Bastian Bittorf <busybox.20.bastian at spamgourmet.org> 2009-06-20 16:19:21 UTC ---
> "local a=b" is running a builtin called "local". Every builtin has exitcode,
> just like normal commands. in this case it has exitcode 0: "I succeeded"
>
> "a=b" is an assignment. It's not a command. It has no exitcode. IOW: exitcode
> of the last command is preserved across "a=b".
That sounds correct and clear to me, ticket can be closed IMHO.
Thanks for your explanation.
--
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