|
| From: | Chet Ramey |
| Subject: | Re: devel: Questions about quoting in the new replacement ${var/pat/&} |
| Date: | Thu, 20 Jan 2022 11:33:48 -0500 |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 |
On 1/19/22 8:46 PM, Koichi Murase wrote:
Sorry, I hadn't checked the bashref.html of the devel branch. Now I
have read the description. I think this is sufficiently clear, and in
particular, these examples are very useful to understand the actual
behavior. I like it. I couldn't find similar explanations or examples
for glob operators (*, ?, [, @(), etc.) of ${var#pat}, ${var%pat}, and
${var/pat} and anchors # and % of ${var/#pat} and ${var/%pat}, but
maybe we can have similar examples also for those pattern strings.
Contributions are always welcome.
--
``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] |