summary refs log tree commit diff
path: root/src/parser.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-09-24 22:11:59 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2007-09-24 22:11:59 +0800
commitff13779efd4c427d870bc333fe01121fb0086e70 (patch)
tree4d3e153925b755cff9a1b21ce48b6beed0535cf8 /src/parser.c
parent[PARSER] Remove superfluous arinest test for dqvarnest (diff)
downloaddash-ff13779efd4c427d870bc333fe01121fb0086e70.tar.gz
dash-ff13779efd4c427d870bc333fe01121fb0086e70.zip
[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.
Diffstat (limited to '')
-rw-r--r--src/parser.c4
1 files changed, 0 insertions, 4 deletions
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 {