Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Peter Stuge <peter@...>
Subject: Re: RFC: esethome
Date: Fri, 15 Jun 2012 16:34:12 +0200
Mike Gilbert wrote:
> > [] is shorthand for test. Both test and [[]] in my man bash read:
> >
> > --8<--
> > Expressions are composed of the primaries described .. under
> > CONDITIONAL EXPRESSIONS.
> > -->8--

And the next sentence is exactly what you wrote. :)

"Word splitting and pathname expansion are not performed on the words
between the [[ and ]]"


> Word splitting does not occur within double brackets. This is
> documented in the bash manual.
> 
> http://www.gnu.org/software/bash/manual/bashref.html#Conditional-Constructs
> 
> This causes empty output from a command substitution within double
> brackets to be treated as a zero-length string.

Thanks for pointing me to the right place!


//Peter


References:
RFC: enewuser should force updates to shell and home
-- Ian Stakenvicius
Re: RFC: enewuser should force updates to shell and home
-- Mike Frysinger
Re: RFC: esethome
-- Ian Stakenvicius
Re: RFC: esethome
-- Mike Frysinger
Re: RFC: esethome
-- Peter Stuge
Re: RFC: esethome
-- Ian Stakenvicius
Re: RFC: esethome
-- Peter Stuge
Re: RFC: esethome
-- Fabian Groffen
Re: RFC: esethome
-- Peter Stuge
Re: RFC: esethome
-- Mike Gilbert
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: RFC: esethome
Next by thread:
Re: RFC: enewuser should force updates to shell and home
Previous by date:
Re: RFC: esethome
Next by date:
Re: ebuild laziness and binpkg overhead


Updated Jun 23, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.