Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15701

Re: Backslash missing in brace expansion

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Backslash missing in brace expansion
Date 2019-12-06 09:27 -0800
Organization ITS, Case Western Reserve University
Message-ID <mailman.420.1575653275.1979.bug-bash@gnu.org> (permalink)
References <20191206055304.076d6115afa3a4f2a6a21c34@schrader-schulte.de> <20191205201157.cd481936f76d95bbdfabc73c@schrader-schulte.de> <662e2328-f331-c554-afcf-fd3819f6beab@case.edu> <3405.1575652983@jinx.noi.kre.to> <705b3ac8-9918-35bb-5fb6-5b8163907923@case.edu>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Backslash missing in brace expansion Chet Ramey <chet.ramey@case.edu> - 2019-12-06 09:27 -0800

csiph-web