summary refs log tree commit diff
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
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.
-rw-r--r--ChangeLog1
-rw-r--r--src/parser.c4
2 files changed, 1 insertions, 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 <olecom@flower.upol.cz>
 
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 {