[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Backslash missing in brace expansion
From: |
Chet Ramey |
Subject: |
Re: Backslash missing in brace expansion |
Date: |
Fri, 6 Dec 2019 09:27:43 -0800 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 |
On 12/6/19 9:23 AM, Robert Elz wrote:
> I'm not sure I accept the explanation for the \ missing though, quoting is
> also a parser activity (though some of it also happens in pattern matching).
> But normally, backslashes (or any other form of quoting) that result from
> expansions are simply characters. Quote removal is only supposed to remove
> quotes that were present on the original command line.
Quote removal is a word expansion, and removes quotes that were present in
the original word passed to word expansion. Brace expansion is performed
before any of the POSIX word expansions, and is logically a separate step.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
- Re: Unicode range and enumeration support., (continued)
- Re: Unicode range and enumeration support., Robert Elz, 2019/12/24
- Re: Unicode range and enumeration support., Greg Wooledge, 2019/12/23
- Re: Unicode range and enumeration support., L A Walsh, 2019/12/23
- Re: unquoted expansion not working (was Re: Not missing, but very hard to see), Robert Elz, 2019/12/14
- Re: unquoted expansion not working (was Re: Not missing, but very hard to see), L A Walsh, 2019/12/15
- Re: Not missing, but very hard to see (was Re: Backslash missing in brace expansion), Chet Ramey, 2019/12/13
Re: Backslash missing in brace expansion, Robert Elz, 2019/12/06