Received: from spf1.us4.outblaze.com (spf1.us4.outblaze.com [205.158.62.23]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id iACL7Ljs023973 for ; Fri, 12 Nov 2004 21:07:21 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf1.us4.outblaze.com (Postfix) with ESMTP id A49D85404C for ; Fri, 12 Nov 2004 21:07:24 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSimF-0000Lm-Ue for migo@homemail.com; Fri, 12 Nov 2004 16:16:15 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CSilt-0000Kp-1N for gnu-arch-users@gnu.org; Fri, 12 Nov 2004 16:15:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CSils-0000KO-I2 for gnu-arch-users@gnu.org; Fri, 12 Nov 2004 16:15:52 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSils-0000KK-E2 for gnu-arch-users@gnu.org; Fri, 12 Nov 2004 16:15:52 -0500 Received: from [129.255.60.186] (helo=ct.radiology.uiowa.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CSidB-00083y-UR for gnu-arch-users@gnu.org; Fri, 12 Nov 2004 16:06:54 -0500 Received: from [192.168.1.11] (12-217-241-0.client.mchsi.com [12.217.241.0]) by ct.radiology.uiowa.edu (8.11.6/8.11.6) with ESMTP id iACL6e304941; Fri, 12 Nov 2004 15:06:40 -0600 Message-ID: <419525D6.3030303@arbash-meinel.com> Date: Fri, 12 Nov 2004 15:06:30 -0600 From: John A Meinel User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Zenaan Harkness Subject: Re: [Gnu-arch-users] bash scripting conditionals: "-a" vs "-e" References: <1100222699.3031.43.camel@localhost.localdomain> <20041112104128.GC721@vagabond> <1100293497.3074.6.camel@localhost.localdomain> In-Reply-To: <1100293497.3074.6.camel@localhost.localdomain> X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Cc: arch , Matthias Klose , Jan Hudec X-BeenThere: gnu-arch-users@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: a discussion list for all things arch-ish List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0823469808==" Sender: gnu-arch-users-bounces+migo=homemail.com@gnu.org Errors-To: gnu-arch-users-bounces+migo=homemail.com@gnu.org Status: RO Content-Length: 2366 Lines: 80 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============0823469808== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE24FDB6FF6C7941E9FEFF7A3" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE24FDB6FF6C7941E9FEFF7A3 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Zenaan Harkness wrote: > Matthias, can you confirm if this is a doco bug? > Well, both cygwin, redhat AS3 and redhat 9 only have -a as the && operator. They don't have the entry like you see for '-a file'. John =:-> [...] > Well that seems to be the functionality, but the docs tell otherwise, > both info and man include the following: > > ... > -a file > True if file exists. > -b file > True if file exists and is a block special file. > -c file > True if file exists and is a character special file. > -d file > True if file exists and is a directory. > -e file > True if file exists. > -f file > True if file exists and is a regular file. > ... > > Of course, they both also include documentation about -a being &&. My > suspicion is that -a might be unary-file-test (can't add ! to negate the > condition for example)?? but I haven't tested this... it could just be a > doco bug. > --------------enigE24FDB6FF6C7941E9FEFF7A3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBlSXbJdeBCYSNAAMRAt0iAKCMLGaTfyUTLPFB1dDxuEvpSgztKQCgoaIH eDXgb1qc84m6sAHCp/fLwlU= =rkTE -----END PGP SIGNATURE----- --------------enigE24FDB6FF6C7941E9FEFF7A3-- --===============0823469808== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Gnu-arch-users mailing list Gnu-arch-users@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-arch-users GNU arch home page: http://savannah.gnu.org/projects/gnu-arch/ --===============0823469808==--