[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: quote removal issues within character class
From: |
Andreas Schwab |
Subject: |
Re: quote removal issues within character class |
Date: |
Sat, 09 Nov 2019 17:14:53 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
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."
Re: quote removal issues within character class, Chet Ramey, 2019/11/13