Any shells that failed due to this are in violation of POSIX, as 'set
-e' is not supposed to cause a failure due to the first part of an AND
list. See
http://www.opengroup.org/onlinepubs/009695399/utilities/set.html:
-e
When this option is on, if a simple command fails for any of the reasons
listed in Consequences of Shell Errors or returns an exit status value >0, and
is not part of the compound list following a while, until, or if keyword, and
is not a part of an AND or OR list, and is not a pipeline preceded by the !
reserved word, then the shell shall immediately exit.
--
/lib/init/vars.sh returns non-zero for non-error status
https://bugs.launchpad.net/bugs/83741
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs