bug-bash
[Top][All Lists]
Advanced

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

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


From: Chet Ramey
Subject: Re: Brace expansion inside of command substitution - broken or is it me?
Date: Sat, 19 Feb 2011 10:29:05 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7

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? 

Well, more or less.  The word has to be quoted well enough to make it
past the parser, but the rest of the expansions that pay attention to
the quotes happen after brace expansion and work on its results.

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



reply via email to

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