From a87ce0fb25799199317ec0645143e2c34026dabf Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 5 Jun 2003 11:05:01 +0000 Subject: users/1654: anchors did'nt work with // parameter substitution --- ChangeLog | 3 +++ Src/subst.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 17d3dce98..24437878b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2003-06-05 Peter Stephenson + * users/6154: Src/subst.c: anchors didn't work with // + parameter substitution. + * 18526 tweaked (c.f. 18527): Completion/Base/Utility/_arguments, Completion/Base/Utility/_describe, Doc/Zsh/compsys.yo: fix use of style prefix-needed in _arguments by adding an diff --git a/Src/subst.c b/Src/subst.c index a84bfbd74..bc7015eef 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -1420,7 +1420,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) if ((c = *s) == '/') { /* doubled, so replace all occurrences */ flags |= SUB_GLOBAL; - s++; + c = *++s; } /* Check for anchored substitution */ if (c == '%') { -- cgit 1.4.1