|
From: | Chet Ramey |
Subject: | Re: Bash parameter expansion (remove largest trailing match, remove largest leading match, pattern replacement) does not work |
Date: | Mon, 31 Aug 2020 12:01:55 -0400 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 |
On 8/29/20 9:12 PM, Lawrence Velázquez wrote: >> Actually, it works (portably) with >> separator2=$'\057' > > (a) $'...' is not POSIX. For instance, dash does not recognize it. I believe it made the cut and will be in the next edition of the standard. -- ``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] |