1
0
Fork 0
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:
Barton E. Schaefer 2015-01-06 09:20:43 -08:00
parent f9cc5a6e56
commit 7e7449592a

View file

@ -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;
}