about summary refs log tree commit diff
path: root/Src/lex.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-09-15 14:04:51 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-09-15 14:04:51 +0000
commit3dba9a8614e15292ef27cf81c202a39a37e4fff7 (patch)
treecf2a137cfcbe6cbfb20e3c0ef37477820a563c37 /Src/lex.c
parenta0700c54400fdfbed7244354f2c207414558745b (diff)
downloadzsh-3dba9a8614e15292ef27cf81c202a39a37e4fff7.tar.gz
zsh-3dba9a8614e15292ef27cf81c202a39a37e4fff7.tar.xz
zsh-3dba9a8614e15292ef27cf81c202a39a37e4fff7.zip
29776: fix case of double quotes in double-quote-style
parsing where end character is something else
Diffstat (limited to 'Src/lex.c')
-rw-r--r--Src/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/lex.c b/Src/lex.c
index 51aaa76ef..90c4effd9 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1567,7 +1567,7 @@ dquote_parse(char endchar, int sub)
 		err = (!brct-- && math);
 	    break;
 	case '"':
-	    if (intick || ((endchar == ']' || !endchar) && !bct))
+	    if (intick || (endchar != '"' && !bct))
 		break;
 	    if (bct) {
 		add(Dnull);