From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IpN3F-0006Wh-OT for garchives@archives.gentoo.org; Tue, 06 Nov 2007 11:57:02 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.2/8.14.0) with SMTP id lA6Btf4I001219; Tue, 6 Nov 2007 11:55:41 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.2/8.14.0) with ESMTP id lA6BrbLh031193 for ; Tue, 6 Nov 2007 11:53:38 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 1C6B7659A6 for ; Tue, 6 Nov 2007 11:53:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: 1.178 X-Spam-Level: * X-Spam-Status: No, score=1.178 required=5.5 tests=[AWL=-0.704, BAYES_40=-0.185, RCVD_NUMERIC_HELO=2.067] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5VygsWAP0xNC for ; Tue, 6 Nov 2007 11:53:37 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id B4BCE6598C for ; Tue, 6 Nov 2007 11:53:35 +0000 (UTC) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1IpMwU-00058C-PW for gentoo-dev@gentoo.org; Tue, 06 Nov 2007 11:50:02 +0000 Received: from 91.84.98.191 ([91.84.98.191]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Nov 2007 11:50:02 +0000 Received: from slong by 91.84.98.191 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Nov 2007 11:50:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: Steve Long Subject: Re: [gentoo-dev] Re: More general interface to use flags Followup-To: gmane.linux.gentoo.portage.devel Date: Tue, 06 Nov 2007 11:50:32 +0000 Message-ID: References: <472B29B9.50002@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 91.84.98.191 User-Agent: KNode/0.10.4 Sender: news Cc: gentoo-portage-dev@lists.gentoo.org X-Archives-Salt: 4bbb1329-f0ec-4db8-a698-5de915a6e884 X-Archives-Hash: 088ba37b3f3e45c80ae5dba3c0e8e376 Alec Warner wrote: > On 11/4/07, Steve Long wrote: >> One minor thing; -n is the default test, so: >> [[ $1 ]] is the same as [[ -n $1 ]] >> and: >> [[ ! $1 ]] is the same as [[ -z $1 ]] >> ''help test'' is very revealing, for those who haven't read it. ;-) > > Code Clarity over shortcuts. Use the explicit version. There's nothing unclear about [[ $1 ]] IMO. But whatever floats your "${boat}" ;) -- gentoo-dev@gentoo.org mailing list