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

2011-02-19 Thread Chet Ramey
On 2/19/11 6:13 AM, Peter Hofmann wrote: > Aha, I see. I've read that part about "strictly textual" and "performed > before all other expansions" in the manual, but I didn't realize all the > consequences. This means that my quotes get interpreted *after* the > brace expansion is done, right? We

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