Geoff Clare <[email protected]> wrote, on 04 Jul 2019:
>
> I started thinking it would be better to handle this in 2.13.1, but
> then realised it would be difficult to specify there given that 2.6.2
> says "Enclosing the full parameter expansion string in double-quotes
> shall not cause the following four varieties of pattern characters to
> be quoted, whereas quoting characters within the braces shall have this
> effect."
>
> So I think we need to add something to that part of 2.6.2, and to
> 2.9.4.3.
On second thoughts, it would probably be best to handle it in 2.2.3
and get rid of all the text in other places that talks about how
double quotes affect expansions done inside them.
Something like:
When double-quotes are used to quote a parameter expansion, command
substitution or arithmetic expansion, the literal value of all
characters within the result of the expansion shall be preserved.
I think this works okay with the text from 2.6.2 I quoted above because
that text says "shall not cause ... to be quoted". I.e. since the
pattern is not "quoted", this new text does not apply to it.
--
Geoff Clare <[email protected]>
The Open Group, Apex Plaza, Forbury Road, Reading, RG1 1AX, England