Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
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 11:19:05
Message-Id: 200709240706.41377.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-lang/ruby: ChangeLog ruby-1.8.6_p110.ebuild by "René 'Necoro' Neumann"
1 On Monday 24 September 2007, René 'Necoro' Neumann wrote:
2 > Mike Frysinger schrieb:
3 > > On Monday 24 September 2007, Donnie Berkholz wrote:
4 > >> On 09:38 Mon 24 Sep , Richard Brown (rbrown) wrote:
5 > >>> if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then
6 > >>> ${ROOT}usr/sbin/ruby-config ruby${SLOT/./}
7 > >>>
8 > >>> if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then
9 > >>> ${ROOT}usr/sbin/ruby-config ruby${SLOT/./}
10 > >>> fi
11 > >>
12 > >> ROOT can have spaces in it too.
13 > >
14 > > this is why the form:
15 > > [[ -n $(readlink "${ROOT}"usr/bin/ruby) ]]
16 > > is preferred ... much easier to read and no nested quotes
17 >
18 > And: [[ ! -n ... ]] transforms to [[ -z ... ]]
19
20 ! -n and -z are equivalent but there are no standards from the point of view
21 of Gentoo ... this is purely whatever logic happens to spew out of the head
22 of the developer as he composes the ebuild
23 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature