* 3.1.5-pws-17: completion filenames with blanks problem
@ 1999-05-14 9:31 Andrej Borsenkow
0 siblings, 0 replies; 2+ messages in thread
From: Andrej Borsenkow @ 1999-05-14 9:31 UTC (permalink / raw)
To: ZSH workers mailing list
I know, pws-18 is out, but there is nothing that mentiones similar problem
there:
bor@itsrm2:/tools/src/zsh-3.1.5-pws-17/Completion%> zsh -f
itsrm2% fpath=($PWD/*)
itsrm2% . Core/compinit
itsrm2% compconf correct_accept='2n'
itsrm2% compconf match_original='yes'
itsrm2% compconf completer='_complete:_match'
itsrm2% compconf dumpfile='/home/bor/.zsh.d/Completion/Core/compinit.dump'
itsrm2% compconf correct_prompt='correct to:'
itsrm2% cd /a1/Microsoft/IE5/IE5.0 Security Updates/
itsrm2% cd /a/M/I/I<TAB>
itsrm2% cd /a1/Microsoft/IE5/IE5.0 Security Updates/
^ ^
blanks are not quoted. Builtin completion is O.K.
/andrej
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 3.1.5-pws-17: completion filenames with blanks problem
@ 1999-05-14 11:17 Sven Wischnowsky
0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 1999-05-14 11:17 UTC (permalink / raw)
To: zsh-workers
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@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-05-14 11:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-14 9:31 3.1.5-pws-17: completion filenames with blanks problem Andrej Borsenkow
1999-05-14 11:17 Sven Wischnowsky
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).