Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Substitute the last match of a pattern during parameters expansion.
- X-seq: zsh-users 28065
- From: Lawrence Velázquez <larryv@xxxxxxx>
- To: "Michele Venturi" <dardo82@xxxxxxxxx>
- Cc: zsh-users@xxxxxxx
- Subject: Re: Substitute the last match of a pattern during parameters expansion.
- Date: Tue, 13 Sep 2022 02:06:17 -0400
- Archived-at: <https://zsh.org/users/28065>
- Feedback-id: iaa214773:Fastmail
- In-reply-to: <CA+Ds4NuuAMiKoi9D=hgyY-RbySais1eEgZHbivx=L68KUWv1bg@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CA+Ds4NsnE6HvV_Kf59KO5_=8Jb4STxwAzL8x+EUq1aiQdB91ZA@mail.gmail.com> <a0ea450b-eb84-47d1-a4ae-bd0bfbef51ea@www.fastmail.com> <CA+Ds4NuuAMiKoi9D=hgyY-RbySais1eEgZHbivx=L68KUWv1bg@mail.gmail.com>
On Tue, Sep 13, 2022, at 12:19 AM, Michele Venturi wrote:
> On Mon, Sep 12, 2022, 08:01,
> Lawrence Velázquez,
> <larryv@xxxxxxx>, wrote:
>
>> But there is already a '%' flag...
>> This doesn't merits a new one.
No, I didn't write that. What I wrote was: "There is already a '%'
flag. I do not think this merits a new one." I intentionally said
"I do not think" to make it clear that that was my personal opinion.
Please do not modify others' words and present the revision as a
quotation. It's *extremely* poor form.
> What merits a new one then?
There isn't a strict policy or anything, but in my opinion new flags
should only be considered for broadly useful functionality that
cannot be implemented using the existing flags or enhanced versions
of them. We already have an absurd number of flags; I don't think
new ones should be added willy-nilly.
Your use case could theoretically be satisfied by an enhanced 'I'
flag, so I don't think it deserves its own flag.
> How do you extend the I flag?
I don't know. I am not familiar with the code base.
--
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author