bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: incorrect brace expansion when using default values


From: Mike Frysinger
Subject: Re: incorrect brace expansion when using default values
Date: Wed, 6 Sep 2006 10:22:46 -0400
User-agent: KMail/1.9.4

On Wednesday 06 September 2006 05:04, Andreas Schwab wrote:
> prj@po.cwru.edu (Paul Jarc) writes:
> > Mike Frysinger <vapier@gentoo.org> wrote:
> >> this little bit of code doesnt work right:
> >> foo() { echo "${1:-a{b,c}}" ; }
> >
> > Brace expansion happens before parameter expansion (man bash,
> > EXPANSION).
>
> Brace expansion doesn't come into play here, because the braces are
> quoted.

without quotes has the same behavior
foo() { echo ${1:-a{b,c}} ; }
-mike

Attachment: pgpISuMP8zRlW.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]