On 1/16/12 2:14 PM, Greg Wooledge wrote:
> Someone in IRC was doing an overly complex command invovling grep "^.{1,8}"
> inside a command substitution, and we believe he stumbled upon a bash bug.
> I've simplified it down to this:
> 
> $ echo "$(echo "a{1,8}")"
> a1 a8
> 
> The curly braces here should not be treated as a brace expansion, since
> they're obviously inside a quoted argument.
The curly braces shouldn't be handled by the "outer" shell anyway, since
they're part of a command substitution.  (The quotes inside the command
substitution should not be misinterpreted as terminating the outer quoted
string.)  This was already reported and fixed for the next bash releaes.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to