Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Matching in completion again
- X-seq: zsh-workers 13438
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Matching in completion again
- Date: Wed, 7 Feb 2001 09:03:21 +0100 (MET)
- In-reply-to: "Andrej Borsenkow"'s message of Wed, 7 Feb 2001 10:59:07 +0300
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Andrej Borsenkow wrote:
> I'm not sure if the following is correct ... anyway I have the feeling it
> behaved differently once. May be, I just wished it behaved differently :)
I have the feeling, you reported something similar some time ago, and
got almost the same answer you'll get now ;-)
> bor@itsrm2% l /to/sh/zsh/-TAB
> bor@itsrm2% l /tools/share/zsh/site-functions/
> bor@itsrm2% l /tools/share/zsh/
> 3.1.9-dev-5/ 3.1.9-dev-6/ 3.1.9-dev-7/ 3.1.9-dev-8/
> site-functions/
>
> The question is, why completion shows one match only.
Because it first tries this match spec:
> ...
>
> zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-z}={A-Z}
> r:|[._-]=* r:|=*' 'm:{a-z}={A-Z} r:|[.-]=** r:|=**'
^^^^^^^^^^^^^^^^^
With single `*'s, so it can't match parts containing anchor characters
and `3.1.9' and `dev-?' both contain two/one of the anchor characters.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author