Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: PATCH: fix for (#s) and (#e) in param substs
- X-seq: zsh-workers 10757
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Peter Stephenson" <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>, "Zsh hackers list" <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: PATCH: fix for (#s) and (#e) in param substs
- Date: Fri, 14 Apr 2000 15:42:05 +0400
- Importance: Normal
- In-reply-to: <0FT000MKM7T8D3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
> This wasn't as bad as it could have been. Things like
>
> ${foo//(#s)d*time(#e)/d fight/}
>
> are all now supposed to work. One thing I like about this is
> it allows you
> to forget about not only anchor characters in / and //, but
> even ## and %%,
> and with the (S) parameter flag # and % too --- the /-forms
> together with
> the start and end assertions present a single consistent interface for
> pattern substitutions.
>
Just a question - is there any speed penalty in using / instead of # or
%?
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author