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 |