Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
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 00:03:59
Message-Id: pan.2007.09.24.23.51.54@cox.net
In Reply to: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-fs/udev: ChangeLog udev-115-r6.ebuild by Donnie Berkholz
1 Donnie Berkholz <dberkholz@g.o> posted
2 20070924200956.GS22279@supernova, excerpted below, on Mon, 24 Sep 2007
3 13:09:57 -0700:
4
5 > For tests, pick a style
6 > [[ ]] or [ ] and stick with it. The [[ ]] one is pretty nice because it
7 > generally doesn't require quotes, so the code looks a lot cleaner.
8
9 Can you point me (and anyone else that may be interested) to a nice
10 explanation of the difference? I've always wondered why [[ ]] is
11 considered "better" than [ ] for tests.
12
13 --
14 Duncan - List replies preferred. No HTML msgs.
15 "Every nonfree program has a lord, a master --
16 and if you use the program, he is your master." Richard Stallman
17
18 --
19 gentoo-dev@g.o mailing list

Replies