[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature request: ${ regex s expander, and multiple expandrs inside o
From: |
Chet Ramey |
Subject: |
Re: feature request: ${ regex s expander, and multiple expandrs inside one |
Date: |
Fri, 5 Feb 2021 16:13:49 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
On 2/5/21 3:29 PM, Alex fxmbsw7 Ratchev wrote:
..
var=mynewfoo
printf ${var~~n[^f]+}
->
myfoo
So you want to remove portions of a variable's value that match a regex?
and also multiple expanders inside one statement would greatly speed up
processment and also fulfill old greatly coding wanting possibilities
No. This has come up before; it's very hard to keep it coherent and not
worth the implementation complexity.
--
``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/