zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: Quote backslash in dobulequote.
@ 1999-09-24 12:36 Tanaka Akira
  0 siblings, 0 replies; only message in thread
From: Tanaka Akira @ 1999-09-24 12:36 UTC (permalink / raw)
  To: zsh-workers

is27e1u11% print -lr ${(qqq):-'\'}
"\"
is27e1u11% 

Hm. It should be "\\".

Index: Src/utils.c
===================================================================
RCS file: /projects/zsh/zsh/Src/utils.c,v
retrieving revision 1.1.1.31
diff -u -F^( -r1.1.1.31 utils.c
--- utils.c	1999/09/23 14:15:27	1.1.1.31
+++ utils.c	1999/09/24 12:34:47
@@ -2985,10 +2985,10 @@
 	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)) {
-- 
Tanaka Akira


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-09-24 12:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-24 12:36 PATCH: Quote backslash in dobulequote Tanaka Akira

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).