1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-22 00:21:27 +01:00

users/1654: anchors did'nt work with // parameter substitution

This commit is contained in:
Peter Stephenson 2003-06-05 11:05:01 +00:00
parent ecdfa912ae
commit a87ce0fb25
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2003-06-05 Peter Stephenson <pws@csr.com>
* 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

View file

@ -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 == '%') {