From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10394 invoked from network); 24 Jul 2001 07:19:49 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 24 Jul 2001 07:19:49 -0000 Received: (qmail 10677 invoked by alias); 24 Jul 2001 07:19:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15469 Received: (qmail 10666 invoked from network); 24 Jul 2001 07:19:42 -0000 From: Sven Wischnowsky Date: Tue, 24 Jul 2001 09:19:16 +0200 (MET DST) Message-Id: <200107240719.JAA12782@beta.informatik.hu-berlin.de> To: zsh-workers@sunsite.dk Subject: Re: Matching control problem with space as pivot In-Reply-To: <20010722203635.63486.qmail@web10402.mail.yahoo.com> Felix Rosencrantz wrote: > There might be a problem with trying to use space as a pivot point with > matching control. > > host% bindkey -e; autoload -U compinit; compinit -D > host% zstyle ':completion:*:complete:*' matcher-list 'r:|[.,_- ]=**' > host% touch "abc.def" "abc ghi" "axx gxx" "ayy.gyy" > host% more a\ g > > host% more a. > abc.def ayy.gyy > host% more a\. > abc.def ayy.gyy > > I thought maybe the backslash was causing a problem. I also > tried using 'r:|[.,_-\ ]=**', which didn't help. Is this a bug? > Or user error? 1. Yes, you need the backslash there. 2. You didn't tell it that it can insert characters at the end (`r:|=*'). 3. Look at your character class. Closely. [.,_-\ ] That's `a dot, a comma or one of the characters between an underscore and a space'. Since the space is ASCII-wise before the underscore that's the same as `a dot or a comma'. You might want to try 'r:|[.,\ _-]=** r:|=*'. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de