Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 3.1.5-pws-17: completion filenames with blanks problem
- X-seq: zsh-workers 6283
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: 3.1.5-pws-17: completion filenames with blanks problem
- Date: Fri, 14 May 1999 13:17:15 +0200 (MET DST)
- In-reply-to: "Andrej Borsenkow"'s message of Fri, 14 May 1999 13:31:45 +0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Andrej Borsenkow wrote:
> blanks are not quoted. Builtin completion is O.K.
This affected all `compadd -U's.
Bye
Sven
diff -u oos/Zle/zle_tricky.c Src/Zle/zle_tricky.c
--- oos/Zle/zle_tricky.c Sat May 8 14:31:49 1999
+++ Src/Zle/zle_tricky.c Fri May 14 13:13:45 1999
@@ -3723,7 +3723,8 @@
}
}
if (!(dat->aflags & CAF_MATCH)) {
- ms = dupstring(s);
+ ms = ((dat->aflags & CAF_QUOTE) ? dupstring(s) :
+ quotename(s, NULL));
lc = bld_parts(ms, sl, -1, NULL);
isexact = 0;
} else if (!(ms = comp_match(lpre, lsuf, s, cp, &lc,
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author