Re: inappropriate brace expansion in command substitution

2012-01-16 Thread Chet Ramey
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 sh

inappropriate brace expansion in command substitution

2012-01-16 Thread Greg Wooledge
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 o