From owner-freebsd-chat@FreeBSD.ORG Sun Jul 19 21:43:39 2009 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04731106566C for ; Sun, 19 Jul 2009 21:43:39 +0000 (UTC) (envelope-from mailnull@mips.inka.de) Received: from mail-in-13.arcor-online.net (mail-in-13.arcor-online.net [151.189.21.53]) by mx1.freebsd.org (Postfix) with ESMTP id AD7BF8FC1F for ; Sun, 19 Jul 2009 21:43:38 +0000 (UTC) (envelope-from mailnull@mips.inka.de) Received: from mail-in-03-z2.arcor-online.net (mail-in-03-z2.arcor-online.net [151.189.8.15]) by mx.arcor.de (Postfix) with ESMTP id 9928D2BAB8E for ; Sun, 19 Jul 2009 23:09:37 +0200 (CEST) Received: from mail-in-10.arcor-online.net (mail-in-10.arcor-online.net [151.189.21.50]) by mail-in-03-z2.arcor-online.net (Postfix) with ESMTP id 8B0782D4025 for ; Sun, 19 Jul 2009 23:09:37 +0200 (CEST) Received: from lorvorc.mips.inka.de (dslb-092-075-104-186.pools.arcor-ip.net [92.75.104.186]) by mail-in-10.arcor-online.net (Postfix) with ESMTPS id 3B32128EDC3 for ; Sun, 19 Jul 2009 23:09:37 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-10.arcor-online.net 3B32128EDC3 Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.14.3/8.14.3) with ESMTP id n6JL9agc014944 for ; Sun, 19 Jul 2009 23:09:36 +0200 (CEST) (envelope-from mailnull@lorvorc.mips.inka.de) Received: (from mailnull@localhost) by lorvorc.mips.inka.de (8.14.3/8.14.3/Submit) id n6JL9ait014943 for freebsd-chat@freebsd.org; Sun, 19 Jul 2009 23:09:36 +0200 (CEST) (envelope-from mailnull) From: naddy@mips.inka.de (Christian Weisgerber) Date: Sun, 19 Jul 2009 21:09:36 +0000 (UTC) Message-ID: References: <200907172257.QAA15292@lariat.net> <20090718000116.GA8379@steerpike.hanley.stade.co.uk> <200907180121.TAA16416@lariat.net> Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-chat@freebsd.org Subject: Re: Bourne shell short-circuit operators improperly documented X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jul 2009 21:43:39 -0000 Brett Glass 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