From ff13779efd4c427d870bc333fe01121fb0086e70 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Mon, 24 Sep 2007 22:11:59 +0800 Subject: [PARSER] Remove superfluous dblquote settings when ending arith When an arithmetic expansion terminates and we restore the syntax to the previous one, we don't need to set dblquote because we never changed upon entering the arithmetic expansion. --- ChangeLog | 1 + src/parser.c | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index b311ad4..e5987f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ * Perform tilde expansion in all parameter expansion words. * Remove superfluous arinest test in CENDQUOTE. * Remove superfluous arinest test for dqvarnest. + * Remove superfluous dblquote settings when ending arith. 2007-09-22 Oleg Verych diff --git a/src/parser.c b/src/parser.c index 8fac57a..791251d 100644 --- a/src/parser.c +++ b/src/parser.c @@ -970,10 +970,6 @@ quotemark: if (--arinest == 0) { USTPUTC(CTLENDARI, out); syntax = prevsyntax; - if (syntax == DQSYNTAX) - dblquote = 1; - else - dblquote = 0; } else USTPUTC(')', out); } else { -- cgit 1.4.1