mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-30 05:40:58 +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>
|
||||
|
||||
* 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,
|
||||
Test/A04redirect.ztst: fix re-presentation of here-documents
|
||||
munged internally to here-strings.
|
||||
|
|
|
|||
|
|
@ -4268,6 +4268,8 @@ quotestring(const char *s, char **e, int instring)
|
|||
while (*u && *u != c)
|
||||
*v++ = *u++;
|
||||
*v++ = c;
|
||||
if (*u)
|
||||
u++;
|
||||
continue;
|
||||
} else if ((*u == Qstring || *u == '$') && u[1] == '\'' &&
|
||||
instring == QT_DOUBLE) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue