mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-28 17:10:59 +01:00
24712: handling of backticks being requoted for double quotes
This commit is contained in:
parent
948f015df0
commit
567a8e1d50
2 changed files with 5 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
2008-03-14 Peter Stephenson <pws@csr.com>
|
2008-03-14 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
|
* 24712: Src/utils.c: handling of backticks when being requoted
|
||||||
|
for use inside double quotes had off-by-one error.
|
||||||
|
|
||||||
* 24711: Src/parse.c, Src/text.c, Src/zsh.h,
|
* 24711: Src/parse.c, Src/text.c, Src/zsh.h,
|
||||||
Test/A04redirect.ztst: fix re-presentation of here-documents
|
Test/A04redirect.ztst: fix re-presentation of here-documents
|
||||||
munged internally to here-strings.
|
munged internally to here-strings.
|
||||||
|
|
|
||||||
|
|
@ -4268,6 +4268,8 @@ quotestring(const char *s, char **e, int instring)
|
||||||
while (*u && *u != c)
|
while (*u && *u != c)
|
||||||
*v++ = *u++;
|
*v++ = *u++;
|
||||||
*v++ = c;
|
*v++ = c;
|
||||||
|
if (*u)
|
||||||
|
u++;
|
||||||
continue;
|
continue;
|
||||||
} else if ((*u == Qstring || *u == '$') && u[1] == '\'' &&
|
} else if ((*u == Qstring || *u == '$') && u[1] == '\'' &&
|
||||||
instring == QT_DOUBLE) {
|
instring == QT_DOUBLE) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue