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 iAC1NFGk004111 for ; Fri, 12 Nov 2004 01:23:15 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf1.us4.outblaze.com (Postfix) with ESMTP id 8FDEC53CC2 for ; Fri, 12 Nov 2004 01:23:16 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSQIA-00042n-Sp for migo@homemail.com; Thu, 11 Nov 2004 20:31:58 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CSQHm-00040l-WB for gnu-arch-users@gnu.org; Thu, 11 Nov 2004 20:31:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CSQHl-00040E-UL for gnu-arch-users@gnu.org; Thu, 11 Nov 2004 20:31:34 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSQHl-00040B-PL for gnu-arch-users@gnu.org; Thu, 11 Nov 2004 20:31:33 -0500 Received: from [144.140.71.41] (helo=gizmo06ps.bigpond.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1CSQ8k-0008Oj-2A for gnu-arch-users@gnu.org; Thu, 11 Nov 2004 20:22:14 -0500 Received: (qmail 24968 invoked from network); 12 Nov 2004 01:22:12 -0000 Received: from unknown (HELO psmam11.bigpond.com) (144.135.25.100) by gizmo06ps.bigpond.com with SMTP; 12 Nov 2004 01:22:12 -0000 Received: from cpe-144-132-221-212.nsw.bigpond.net.au ([144.132.221.212]) by psmam11.bigpond.com(MAM REL_3_4_2a 225/3799439) with SMTP id 3799439; Fri, 12 Nov 2004 11:22:12 +1000 Received: by poolcompsonline.com (Postfix, from userid 1000) id 8F53A783E7; Fri, 12 Nov 2004 12:24:59 +1100 From: Zenaan Harkness To: arch Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1100222699.3031.43.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 12 Nov 2004 12:24:59 +1100 Subject: [Gnu-arch-users] bash scripting conditionals: "-a" vs "-e" 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: , 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: 624 Lines: 24 Is -a historical - or why is it there? I converted a bunch of -f to -a in my build scripts, because I realised I didn't want to distinguish between sylinks and 'regular' files. Then I discovered that this broke when inside the construction "[ ! -a file ]" since the -a becomes like &&. So I went reading again and found out that -e appears the same as -a, and -a is like &&. So why -a at all? tia zen _______________________________________________ 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/