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 |