mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-09 00:11:25 +02:00
34103: fix ancient double-quote handling thinko in subst_parse_str()
This doesn't seem to have mattered, but must in some obscure cases
This commit is contained in:
parent
f9cc5a6e56
commit
7e7449592a
1 changed files with 4 additions and 2 deletions
|
@ -1333,14 +1333,16 @@ subst_parse_str(char **sp, int single, int err)
|
|||
if (!single) {
|
||||
int qt = 0;
|
||||
|
||||
for (; *s; s++)
|
||||
for (; *s; s++) {
|
||||
if (!qt) {
|
||||
if (*s == Qstring)
|
||||
*s = String;
|
||||
else if (*s == Qtick)
|
||||
*s = Tick;
|
||||
} else if (*s == Dnull)
|
||||
}
|
||||
if (*s == Dnull)
|
||||
qt = !qt;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue