Gentoo Archives: gentoo-dev

From: "René 'Necoro' Neumann" <lists@××××××.eu>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-lang/ruby: ChangeLog ruby-1.8.6_p110.ebuild
Date: Mon, 24 Sep 2007 10:43:41
Message-Id: 46F80FF5.5000900@necoro.eu
In Reply to: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-lang/ruby: ChangeLog ruby-1.8.6_p110.ebuild by Mike Frysinger
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Mike Frysinger schrieb:
5 > On Monday 24 September 2007, Donnie Berkholz wrote:
6 >> On 09:38 Mon 24 Sep , Richard Brown (rbrown) wrote:
7 >>> if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then
8 >>> ${ROOT}usr/sbin/ruby-config ruby${SLOT/./}
9 >>>
10 >>> if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then
11 >>> ${ROOT}usr/sbin/ruby-config ruby${SLOT/./}
12 >>> fi
13 >> ROOT can have spaces in it too.
14 >
15 > this is why the form:
16 > [[ -n $(readlink "${ROOT}"usr/bin/ruby) ]]
17 > is preferred ... much easier to read and no nested quotes
18 > -mike
19
20 And: [[ ! -n ... ]] transforms to [[ -z ... ]]
21
22 Or am I wrong?
23
24 Regards,
25 - -- Necoro
26 -----BEGIN PGP SIGNATURE-----
27 Version: GnuPG v1.4.7 (GNU/Linux)
28 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
29
30 iD8DBQFG+A/04UOg/zhYFuARAg/dAJ9I5m/p7crLGG9JkIMu2vigtXlXVQCeLJwj
31 /zofTwO9Vtf+mu6EBYT8XiE=
32 =NIoO
33 -----END PGP SIGNATURE-----
34 --
35 gentoo-dev@g.o mailing list

Replies