about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-24 12:54:44 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-24 12:54:44 +0000
commit0b6eb901634da245dbbf4c2e072d24a06ee08f33 (patch)
tree4bbe69e8f1086734a46cce94f2b0c43c8b676138
parentbd08a2a44ee15433e74c19e9ab2d8c490b836a70 (diff)
downloadzsh-0b6eb901634da245dbbf4c2e072d24a06ee08f33.tar.gz
zsh-0b6eb901634da245dbbf4c2e072d24a06ee08f33.tar.xz
zsh-0b6eb901634da245dbbf4c2e072d24a06ee08f33.zip
zsh-workers/8039
-rw-r--r--Src/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 384717916..5f9e89882 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -2985,10 +2985,10 @@ bslashquote(const char *s, char **e, int instring)
 	if (e && *e == u)
 	    *e = v, sf = 1;
 	if (ispecial(*u) &&
-	    (!instring || (isset(BANGHIST) &&
-			   *u == (char)bangchar) ||
+	    (!instring ||
+	     (isset(BANGHIST) && *u == (char)bangchar) ||
 	     (instring == 2 &&
-	      (*u == '$' || *u == '`' || *u == '\"')) ||
+	      (*u == '$' || *u == '`' || *u == '\"' || *u == '\\')) ||
 	     (instring == 1 && *u == '\''))) {
 	    if (*u == '\n' || (instring == 1 && *u == '\'')) {
 		if (unset(RCQUOTES)) {