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


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

Re: quote removal issues within character class

Started byAndreas Schwab <schwab@linux-m68k.org>
First post2019-11-09 17:14 +0100
Last post2019-11-09 17:14 +0100
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: quote removal issues within character class Andreas Schwab <schwab@linux-m68k.org> - 2019-11-09 17:14 +0100

#15586 — Re: quote removal issues within character class

FromAndreas Schwab <schwab@linux-m68k.org>
Date2019-11-09 17:14 +0100
SubjectRe: quote removal issues within character class
Message-ID<mailman.1119.1573316104.13325.bug-bash@gnu.org>
On Nov 09 2019, L A Walsh wrote:

> On 2019/11/09 04:49, Robert Elz wrote:
>> There's also
>>
>> 	The special characters '.', '*', '[', and '\\'
>> 	(<period>, <asterisk>, <left-square-bracket>, and <backslash>,
>> 	respectively) shall lose their special meaning within a bracket
>> 	expression.
>>   
> ----
> Is this really what the standard says, because '\\' is not a character, but
> 2 characters.  They could use "\\" but if a backslash is between single
> quotes, it loses its special meaning.

This is C notation, not shell notation.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

[toc] | [standalone]


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


csiph-web