Chris F.A. Johnson wrote:
>Quote them, and they do expand:
>
> $ foo() { echo "${1:-"a{b,c}"}" ; }
> $ foo
> ab ac
Brace expansion is essentially separate from the rest of the expansions:
in fact, it's designed to be part of a separate library if desired. As
such, it doesn't implement all o
Tatavarty Kalyan schrieb am 08.09.2006 um 11:44:47 (+0800):
> >It is because the string
> > a{b,c}
> >is outside of the quotes. So the brace expansion comes first and
> >duplicates
> >the arguments to the echo call.
>
> Yes, as you said the brace expansion is outside the double quotes so
> s
On 9/8/06, Alexander Elgert <[EMAIL PROTECTED]> wrote:
Tatavarty Kalyan schrieb am 07.09.2006 um 14:20:43 (+0800):
> On 9/6/06, Chris F.A. Johnson <[EMAIL PROTECTED]> wrote:
> >
> >On 2006-09-06, Andreas Schwab wrote:
> >> [EMAIL PROTECTED] (Paul Jarc) writes:
> >>
> >>> Mike Frysinger <[EMAIL P
Tatavarty Kalyan schrieb am 07.09.2006 um 14:20:43 (+0800):
> On 9/6/06, Chris F.A. Johnson <[EMAIL PROTECTED]> wrote:
> >
> >On 2006-09-06, Andreas Schwab wrote:
> >> [EMAIL PROTECTED] (Paul Jarc) writes:
> >>
> >>> Mike Frysinger <[EMAIL PROTECTED]> wrote:
> this little bit of code doesnt wo
On 9/6/06, Chris F.A. Johnson <[EMAIL PROTECTED]> wrote:
On 2006-09-06, Andreas Schwab wrote:
> [EMAIL PROTECTED] (Paul Jarc) writes:
>
>> Mike Frysinger <[EMAIL PROTECTED]> wrote:
>>> this little bit of code doesnt work right:
>>> foo() { echo "${1:-a{b,c}}" ; }
The first '}' is interpreted
On 2006-09-06, Andreas Schwab wrote:
> [EMAIL PROTECTED] (Paul Jarc) writes:
>
>> Mike Frysinger <[EMAIL PROTECTED]> wrote:
>>> this little bit of code doesnt work right:
>>> foo() { echo "${1:-a{b,c}}" ; }
The first '}' is interpreted as the end of the parameter expansion.
>>
>> Brace expansi
On Wednesday 06 September 2006 05:04, Andreas Schwab wrote:
> [EMAIL PROTECTED] (Paul Jarc) writes:
> > Mike Frysinger <[EMAIL PROTECTED]> wrote:
> >> this little bit of code doesnt work right:
> >> foo() { echo "${1:-a{b,c}}" ; }
> >
> > Brace expansion happens before parameter expansion (man bash
[EMAIL PROTECTED] (Paul Jarc) writes:
> Mike Frysinger <[EMAIL PROTECTED]> 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 t
On Tuesday 05 September 2006 19:01, Paul Jarc wrote:
> Mike Frysinger <[EMAIL PROTECTED]> wrote:
> > this little bit of code doesnt work right:
> > foo() { echo "${1:-a{b,c}}" ; }
>
> Brace expansion happens before parameter expansion (man bash,
> EXPANSION). So the first "}" ends the parameter ex
Mike Frysinger <[EMAIL PROTECTED]> wrote:
> this little bit of code doesnt work right:
> foo() { echo "${1:-a{b,c}}" ; }
Brace expansion happens before parameter expansion (man bash,
EXPANSION). So the first "}" ends the parameter expression, and the
second "}" isn't special. The result of param
this little bit of code doesnt work right:
foo() { echo "${1:-a{b,c}}" ; }
$ foo
a{b,c}
$ foo 1
a}
tested with bash-3.1.17
-mike
pgp0Oi7rbI6UV.pgp
Description: PGP signature
___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listi
11 matches
Mail list logo