Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: nested quotes
- X-seq: zsh-workers 8589
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: nested quotes
- Date: Mon, 8 Nov 1999 11:48:43 +0100 (MET)
- In-reply-to: Sven Wischnowsky's message of Mon, 8 Nov 1999 11:20:31 +0100 (MET)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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