|
From: | Chet Ramey |
Subject: | Re: Bash-5.2-alpha available |
Date: | Mon, 24 Jan 2022 12:03:39 -0500 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 |
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 chet@case.edu http://tiswww.cwru.edu/~chet/
[Prev in Thread] | Current Thread | [Next in Thread] |