1 |
Duncan wrote: |
2 |
> Donnie Berkholz <dberkholz@g.o> posted |
3 |
> 20070924200956.GS22279@supernova, excerpted below, on Mon, 24 Sep 2007 |
4 |
> 13:09:57 -0700: |
5 |
> |
6 |
>> For tests, pick a style |
7 |
>> [[ ]] or [ ] and stick with it. The [[ ]] one is pretty nice because it |
8 |
>> generally doesn't require quotes, so the code looks a lot cleaner. |
9 |
> |
10 |
> Can you point me (and anyone else that may be interested) to a nice |
11 |
> explanation of the difference? I've always wondered why [[ ]] is |
12 |
> considered "better" than [ ] for tests. |
13 |
|
14 |
check out http://tldp.org/LDP/abs/html/testconstructs.html#DBLBRACKETS |
15 |
|
16 |
|
17 |
-- |
18 |
fonts / wxWindows / gcc-porting / treecleaners |
19 |
9B81 6C9F E791 83BB 3AB3 5B2D E625 A073 8379 37E8 (0x837937E8) |
20 |
|
21 |
-- |
22 |
gentoo-dev@g.o mailing list |