diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2003-06-05 11:05:01 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-06-05 11:05:01 +0000 |
commit | a87ce0fb25799199317ec0645143e2c34026dabf (patch) | |
tree | 1637b6f664352c0b773ccd7310bfb00958f0f229 /Src/subst.c | |
parent | ecdfa912ae9dc5bd7d98160ab88ae4f17fe761b1 (diff) | |
download | zsh-a87ce0fb25799199317ec0645143e2c34026dabf.tar.gz zsh-a87ce0fb25799199317ec0645143e2c34026dabf.tar.xz zsh-a87ce0fb25799199317ec0645143e2c34026dabf.zip |
users/1654: anchors did'nt work with // parameter substitution
Diffstat (limited to 'Src/subst.c')
-rw-r--r-- | Src/subst.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 == '%') { |