On 1/22/22 2:54 PM, Chet Ramey wrote:
On 1/22/22 2:51 PM, Andreas Schwab wrote:
On Jan 22 2022, Chet Ramey wrote:

Because they should behave identically to other forms of quoting that bash
handles in here-documents. Why should $'' be different from '' only within
here-document bodies?

$'' is left as-is inside double quotes, why should it treated
differently in here-documents?

Yes, I thought of that.

Except it's not unconditional. You have to accommodate ${x#$'value'} in
the here-document expansion path because "${x#$'value'}" is processed for
escape sequences. You're right that it should not be treated differently,
but it's not as simple as leaving $'...' and $"..." unmodified.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to