Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: nested quotes



I wrote:

>   The
>   second change is that in cases like `./zsh -c ls\ <TAB>' no space is 
>   added any more.

Oops. This was also done if there wasn't any quoting at all.

Bye
 Sven

--- oldsrc/Zle/compcore.c	Mon Nov  8 11:23:31 1999
+++ Src/Zle/compcore.c	Mon Nov  8 11:35:35 1999
@@ -2053,7 +2053,7 @@
     cm->pre = pre;
     cm->suf = suf;
     cm->flags = flags;
-    if (*compqstack == '\\' ||
+    if ((*compqstack == '\\' && compqstack[1]) ||
 	(autoq && *compqstack && compqstack[1] == '\\'))
 	cm->flags |= CMF_NOSPACE;
     if (nbrbeg) {

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author