Bourne shell short-circuit operators improperly documented
Christian Weisgerber
naddy at mips.inka.de
Sun Jul 19 21:43:39 UTC 2009
Brett Glass <brett at lariat.net> wrote:
> As I understand it, when it comes to UNIX result codes, 0 doesn't
> really mean "true" -- it means "no error." (In other words, it
> means "false.") Whereas any nonzero value means there was an error
> (and indicates what kind). In other words, it means that it's
> "true" that there was an error.
You are very confused.
$ true; echo $?
0
$ false; echo $?
1
--
Christian "naddy" Weisgerber naddy at mips.inka.de
More information about the freebsd-chat
mailing list