From: Sven Wischnowsky <wischnow@berkom.de>
To: zsh-workers@sunsite.dk
Subject: PATCH: Re: still completion in quotes
Date: Tue, 21 May 2002 09:46:27 +0200 [thread overview]
Message-ID: <15593.64339.44554.401342@wischnow.berkom.de> (raw)
In-Reply-To: <6134254DE87BD411908B00A0C99B044F0369C375@mowd019a.mow.siemens.ru>
Borsenkow Andrej wrote:
> bor@itsrm2% ls
> a b c\ d uudecode
> bor@itsrm2% zsh -c "ls a\\TAB
> bor@itsrm2% zsh -c "ls aa\\*
>
> sorry?
Oh, das ist gemein ;-)
Well, yes, we had to treat that backslash-at-the-end special
elsewhere, so we have to do the same in the nested-quotes case, too.
Right.
Bye
Sven
Index: Src/Zle/compcore.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compcore.c,v
retrieving revision 1.58
diff -u -r1.58 compcore.c
--- Src/Zle/compcore.c 15 May 2002 07:40:36 -0000 1.58
+++ Src/Zle/compcore.c 21 May 2002 07:45:14 -0000
@@ -1428,8 +1428,8 @@
for (p = ns, i = swb; *p; p++, i++) {
if (INULL(*p)) {
if (i < scs) {
- if (*p == Bnull && p[1]) {
- if (remq)
+ if (*p == Bnull) {
+ if (p[1] && remq)
swb -= 2;
if (odq) {
swb--;
@@ -1526,6 +1526,10 @@
untokenize(ss);
compsuffix = ztrdup(ss);
}
+ if ((i = strlen(compprefix)) &&
+ compprefix[i - 1] == '\\' && compprefix[i - 2] != '\\')
+ compprefix[i - 1] = '\0';
+
tmp = tricat(compqiprefix, compiprefix, multiquote(qp, 1));
zsfree(compqiprefix);
compqiprefix = tmp;
--
Sven Wischnowsky wischnow@berkom.de
prev parent reply other threads:[~2002-05-21 7:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-17 5:39 Borsenkow Andrej
2002-05-17 18:40 ` Bart Schaefer
2002-05-21 7:46 ` Sven Wischnowsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15593.64339.44554.401342@wischnow.berkom.de \
--to=wischnow@berkom.de \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).