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


Groups > gnu.bash.bug > #15701 > unrolled thread

Re: Backslash missing in brace expansion

Started byChet Ramey <chet.ramey@case.edu>
First post2019-12-06 09:27 -0800
Last post2019-12-06 09:27 -0800
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#15701 — Re: Backslash missing in brace expansion

FromChet Ramey <chet.ramey@case.edu>
Date2019-12-06 09:27 -0800
SubjectRe: Backslash missing in brace expansion
Message-ID<mailman.420.1575653275.1979.bug-bash@gnu.org>
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/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web