bug-bash
[Top][All Lists]
Advanced

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

Re: Command substition failure?


From: Chet Ramey
Subject: Re: Command substition failure?
Date: Sat, 02 Apr 2011 18:39:22 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.14) Gecko/20110221 Lightning/1.0b2 Thunderbird/3.1.8

On 4/2/11 3:59 PM, Michael Witten wrote:

> Thus, bash has a bug.
> 
> My guess is the nature of the problem is that the combination
> of the outer-most quotes (which would render most characters
> as literal) and the command substitution (which in some sense
> is probably parsed in a `top-level' context) works to confuse
> the brace-expansion logic.

Pretty close.  The brace expansion code doesn't really know very
much shell syntax.  It does know about command and process substitution,
but only when unquoted.  The fix for this is to handle command
substitution when processing a double-quoted string.  That will be
in the next bash release, at least.

Chet

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



reply via email to

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