bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feature request: ${ regex s expander, and multiple expandrs inside o


From: Alex fxmbsw7 Ratchev
Subject: Re: feature request: ${ regex s expander, and multiple expandrs inside one
Date: Fri, 5 Feb 2021 22:29:25 +0100

i actually hope for also replacement code that can use regex grouped data

On Fri, Feb 5, 2021 at 10:13 PM Chet Ramey <chet.ramey@case.edu> wrote:

> 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/
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]