Gentoo Archives: gentoo-dev

From: Steve Long <slong@××××××××××××××××××.uk>
To: gentoo-dev@l.g.o
Cc: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-dev] Re: More general interface to use flags
Date: Tue, 06 Nov 2007 11:57:02
Message-Id: fgpk6s$25b$1@ger.gmane.org
In Reply to: Re: [gentoo-dev] Re: More general interface to use flags by Alec Warner
1 Alec Warner wrote:
2
3 > On 11/4/07, Steve Long <slong@××××××××××××××××××.uk> wrote:
4 >> One minor thing; -n is the default test, so:
5 >> [[ $1 ]] is the same as [[ -n $1 ]]
6 >> and:
7 >> [[ ! $1 ]] is the same as [[ -z $1 ]]
8 >> ''help test'' is very revealing, for those who haven't read it. ;-)
9 >
10 > Code Clarity over shortcuts. Use the explicit version.
11
12 There's nothing unclear about [[ $1 ]] IMO. But whatever floats
13 your "${boat}" ;)
14
15
16 --
17 gentoo-dev@g.o mailing list