Re: Brace expansion inside of command substitution - broken or is it me?

2011-02-19 Thread Peter Hofmann
Hi, On Fri, Feb 18, 2011 at 07:26:18PM -0500, Chet Ramey wrote: > Brace expansion is strictly textual, is performed before all other > expansions, and doesn't understand a whole lot of shell syntax. > It does understand a little about quoted strings, so what you get is > > echo "$(echo "1")" "$(e

Brace expansion inside of command substitution - broken or is it me?

2011-02-18 Thread Peter Hofmann
Hi all, I stumbled upon some rather strange behaviour that I just can't explain. Hopefully one of you can help me with that. :) Let's start with a simple brace expansion: $ echo {1..3} 1 2 3 Now add some quotes to prevent that expansion: $ echo "{1..3}" {1..3} Adding command substitution: