bug-bash
[Top][All Lists]
Advanced

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

Re: Curly braces expansion not always works as expected.


From: mwoehlke
Subject: Re: Curly braces expansion not always works as expected.
Date: Fri, 06 Oct 2006 10:19:57 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.0

Andreas Schwab wrote:
mwoehlke <mwoehlke@tibco.com> writes:

...but doesn't that mean that '{"x,x"}' should expand as '{x,x}'

It does.

Huh?

$ echo {"x,x"} # expected result: '{x,x}'
x,x
$ echo $BASH_VERSION
3.1.17(3)-release

That doesn't look like '{x,x}' to me... it looks like 'x,x', which by my reading is wrong.

If I had to guess, I'd say bash sees the {}'s, and incorrectly decides to do brace expansion based on the *quoted* comma... but when it actually does expansion, it gets the (correct) result 'x,x', except that now the {}'s have been incorrectly removed.

--
Matthew
"What's Cygwin?" you ask.
'Tis mostly absurd software
Concerning hippos.





reply via email to

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