Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Should we backup this change? RE: Modifier substitutions.
- X-seq: zsh-workers 10704
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>, "Zsh hackers list" <zsh-workers@xxxxxxxxxxxxxx>, "Sven Wischnowsky" <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: RE: Should we backup this change? RE: Modifier substitutions.
- Date: Wed, 12 Apr 2000 19:06:35 +0400
- Importance: Normal
- In-reply-to: <1000412145336.ZM12301@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
>
> The change went in in 6002. It was followed in 6003 by a
> change to allow
> a leading double backslash to escape the delimiter. So all
> you need to
> do is change uses of ${foo/$bar/...} into ${foo/\\$bar/...}
> to avoid the
> confusion. And without 6002, there's no way to build up an anchored
> pattern in a variable (which was Andrej's original complaint).
>
The problem is (as I discovered later) it is not complete. There is no
way to anchor pattern to match full string. And my original problem is
better solved with back-references anyway (that were not available at
the time of my question).
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author