From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12556 invoked from network); 7 Feb 2001 08:03:33 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Feb 2001 08:03:33 -0000 Received: (qmail 10406 invoked by alias); 7 Feb 2001 08:03:24 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13438 Received: (qmail 10395 invoked from network); 7 Feb 2001 08:03:23 -0000 Date: Wed, 7 Feb 2001 09:03:21 +0100 (MET) Message-Id: <200102070803.JAA20800@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Andrej Borsenkow"'s message of Wed, 7 Feb 2001 10:59:07 +0300 Subject: Re: Matching in completion again 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@informatik.hu-berlin.de