Gentoo Archives: gentoo-dev

From: Ryan Hill <dirtyepic@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-fs/udev: ChangeLog udev-115-r6.ebuild
Date: Tue, 25 Sep 2007 02:40:26
Message-Id: fd9r7m$6p7$1@sea.gmane.org
In Reply to: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-fs/udev: ChangeLog udev-115-r6.ebuild by Duncan <1i5t5.duncan@cox.net>
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

Replies