From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1F2koQ-0000yZ-3S for garchives@archives.gentoo.org; Sat, 28 Jan 2006 07:47:58 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k0S7kxp9026478; Sat, 28 Jan 2006 07:46:59 GMT Received: from priv-edtnes27.telusplanet.net (outbound04.telus.net [199.185.220.223]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k0S7gqT0011935 for ; Sat, 28 Jan 2006 07:42:53 GMT Received: from zebedee ([154.20.66.11]) by priv-edtnes27.telusplanet.net (InterMail vM.6.01.05.04 201-2131-123-105-20051025) with ESMTP id <20060128074252.QNZH15091.priv-edtnes27.telusplanet.net@zebedee> for ; Sat, 28 Jan 2006 00:42:52 -0700 From: Robert Persson To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] /usr/bin/test doesn't seem to do anything Date: Fri, 27 Jan 2006 23:43:08 -0800 User-Agent: KMail/1.9 References: <200601261535.03942.ireneshusband@yahoo.co.uk> <7573e9640601261622n71053bf7p2db8f89f5ca0c398@mail.gmail.com> In-Reply-To: <7573e9640601261622n71053bf7p2db8f89f5ca0c398@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200601272343.08941.ireneshusband@yahoo.co.uk> X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k0S7gqT0011935 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k0S7kxpP026478 X-Archives-Salt: 2d20b7a1-900c-463f-9377-b3b763a21d9f X-Archives-Hash: 92ea7a97cc478d9b9e08dd30c0cc61b1 On Thursday 26 January 2006 16:22 Richard Fish was like: > test doesn't output anything...it indicates success/failure with the > exit code. =A0 ... > As others have said though, watch out for the 'test' command built-in > to many shells, as the behavior there is defined by the shell. > Generally though, /usr/bin/test and bash test should work the same.... It turns out that I was mistaken and the script was in fact invoking the = bash=20 built-in test (the /usr/bin/test stuff was my overactive imagination). /usr/bin/test is still weird, as Eric Bliss said, because it doesn't prin= t=20 help and version info the way the manpage says it should. A difference between the two tests is that, for /usr/bin/test, a non-zero= exit=20 status means false, whereas bash test resolves to a non-zero value when t= rue. Haven't had time to take another look at the bash script I was wrestling = with.=20 So still not sure whether bash test is being weird as well. --=20 Robert Persson Conspiracy Bears: Once upon a time there were lots of conspiracy bears... --=20 gentoo-user@gentoo.org mailing list