From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-users@sunsite.dk
Subject: Re: RE: [zsh 4.0.1 bug] filename completion
Date: Tue, 26 Jun 2001 11:01:26 +0200 (MET DST) [thread overview]
Message-ID: <200106260901.LAA24070@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: <000501c0fe1a$e954fdc0$21c9ca95@mow.siemens.ru>
Andrej Borsenkow wrote:
> >
> > _cd doesn't even try to complete other directories if the prefix is the
> > name of a cdable variable, which is arguably wrong.
> >
>
> I suspect it is part of more general problem. I have a feeling that handling
> of exact match changed at some point near 4.0.1 release. Now zsh will prefer
> exact match in any context while before I got menu selection ... and I am
> sure none of my styles changed.
>
> E.g. I have /usr/lib{,64s}/netlib. Attempt to complete /u/l/n always
> completes /usr/lib/netlib. Styles are:
Oops. You are right, that test in `compfiles -r' was too stupid (its
the test used in the loop that finds the first ambiguous component and
it didn't add a slash when comparin in-path components, so it thought
`lib' was the same as `lib64s' in this case).
And yes, this also makes it offer both `soft' and `software' in that
other case.
I'm still not overly happy with the code in _cd, though.
This should go into 4.0.2, too, I think.
Bye
Sven
Index: Src/Zle/computil.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/computil.c,v
retrieving revision 1.61
diff -u -r1.61 computil.c
--- Src/Zle/computil.c 2001/06/19 15:46:54 1.61
+++ Src/Zle/computil.c 2001/06/26 09:02:09
@@ -3719,6 +3719,8 @@
if ((q = strchr((p = dupstring(p)), '/')))
*q = '\0';
+ p = dyncat(p, "/");
+
for (; *names; names++)
if (!strpfx(p, *names)) {
*amb = 1;
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next prev parent reply other threads:[~2001-06-26 9:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-25 23:01 Vincent Lefevre
2001-06-26 5:15 ` Bart Schaefer
2001-06-26 8:35 ` Andrej Borsenkow
2001-06-26 9:01 ` Sven Wischnowsky [this message]
2001-06-26 10:10 ` Vincent Lefevre
2001-06-26 10:28 ` Andrej Borsenkow
2001-06-26 11:06 ` Vincent Lefevre
2001-06-26 11:18 ` Sven Wischnowsky
2001-06-26 13:28 ` Vincent Lefevre
2001-06-26 13:29 ` Sven Wischnowsky
2001-06-26 13:37 ` Vincent Lefevre
2001-06-26 13:49 ` Sven Wischnowsky
2001-06-26 9:41 ` Vincent Lefevre
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=200106260901.LAA24070@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-users@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).