bug-bash
[Top][All Lists]
Advanced

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

Re: "$(echo "x'" '{1, 2}')" performs brace expansion, even though it sho


From: Chet Ramey
Subject: Re: "$(echo "x'" '{1, 2}')" performs brace expansion, even though it should not
Date: Mon, 14 Jan 2013 15:17:06 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130107 Thunderbird/17.0.2

On 1/14/13 11:00 AM, Dan Douglas wrote:
> On Monday, January 14, 2013 01:57:14 PM Marco Elver wrote:
>> echo "$(echo "x'" '{1,2}')"
> 
> This was fixed in git a while back, but not backported to 4.2. I believe this:
> 
>                                  8/21
>                                  ----
> command.h
>       - W_NOBRACE: new word flag that means to inhibit brace expansion
> 
> subst.c
>       - brace_expand_word_list: suppress brace expansion for words with
>         W_NOBRACE flag

No, this:

                                    4/2
                                    ---
braces.c
        - brace_gobbler: fix to understand double-quoted command substitution,
          since the shell understands unquoted comsubs.  Fixes bug reported
          by Michael Whitten <mfwitten@gmail.com>

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]