Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jul 2009 21:09:36 +0000 (UTC)
From:      naddy@mips.inka.de (Christian Weisgerber)
To:        freebsd-chat@freebsd.org
Subject:   Re: Bourne shell short-circuit operators improperly documented
Message-ID:  <h4022g$eco$1@lorvorc.mips.inka.de>
References:  <200907172257.QAA15292@lariat.net> <20090718000116.GA8379@steerpike.hanley.stade.co.uk> <200907180121.TAA16416@lariat.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Brett Glass <brett@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@mips.inka.de




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?h4022g$eco$1>