mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-04 20:40:57 +02:00
23114: ${foo:s/bar/rod} broken
This commit is contained in:
parent
110ae85114
commit
481d1b7560
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-01-18 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 23114: Src/subst.c: ${foo:s/bar/rod} was broken (when final
|
||||
delimiter is not present).
|
||||
|
||||
2007-01-16 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* users/11113: Completion/Unix/Command/_todo.sh: extend
|
||||
|
|
|
@ -3477,7 +3477,11 @@ modify(char **str, char **ptr)
|
|||
chuck(tt--);
|
||||
*ptr1end = sav1;
|
||||
*ptr3 = sav;
|
||||
*ptr = ptr3 + charlen - 1;
|
||||
*ptr = ptr3 - 1;
|
||||
if (*ptr3) {
|
||||
/* Final terminator is optional. */
|
||||
*ptr += charlen;
|
||||
}
|
||||
break;
|
||||
|
||||
case '&':
|
||||
|
|
Loading…
Reference in a new issue