diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2003-06-05 11:09:51 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-06-05 11:09:51 +0000 |
commit | 795cc6661653bfb04f601ef4babaf2997528521a (patch) | |
tree | a04473573fe87c1a760893176cd58eb1b8f728c0 | |
parent | d97d868f6770a308a7b2604c4ca929e375728d67 (diff) | |
download | zsh-795cc6661653bfb04f601ef4babaf2997528521a.tar.gz zsh-795cc6661653bfb04f601ef4babaf2997528521a.tar.xz zsh-795cc6661653bfb04f601ef4babaf2997528521a.zip |
users/1654: anchors did'nt work with // parameter substitution
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/subst.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 407b024da..043295319 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-06-05 Peter Stephenson <pws@csr.com> + + * users/6154: Src/subst.c: anchors didn't work with // + parameter substitution. + 2003-06-03 Peter Stephenson <pws@csr.com> * 18600: Src/pattern.c: bug matching against [[:xdigit:]]. diff --git a/Src/subst.c b/Src/subst.c index 256e6d032..8e81073b5 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -1349,7 +1349,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 == '%') { |