On Monday 24 September 2007, René 'Necoro' Neumann wrote:
> Mike Frysinger schrieb:
> > On Monday 24 September 2007, Donnie Berkholz wrote:
> >> On 09:38 Mon 24 Sep     , Richard Brown (rbrown) wrote:
> >>>   if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then
> >>>           ${ROOT}usr/sbin/ruby-config ruby${SLOT/./}
> >>>
> >>>   if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then
> >>>           ${ROOT}usr/sbin/ruby-config ruby${SLOT/./}
> >>>   fi
> >>
> >> ROOT can have spaces in it too.
> >
> > this is why the form:
> > [[ -n $(readlink "${ROOT}"usr/bin/ruby) ]]
> > is preferred ... much easier to read and no nested quotes
>
> And: [[ ! -n ... ]] transforms to [[ -z ... ]]

! -n and -z are equivalent but there are no standards from the point of view 
of Gentoo ... this is purely whatever logic happens to spew out of the head 
of the developer as he composes the ebuild
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to