From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13073 invoked from network); 2 May 2000 12:55:02 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 May 2000 12:55:02 -0000 Received: (qmail 20179 invoked by alias); 2 May 2000 12:54:47 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11071 Received: (qmail 20114 invoked from network); 2 May 2000 12:54:42 -0000 Date: Tue, 2 May 2000 14:54:40 +0200 (MET DST) Message-Id: <200005021254.OAA03319@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Andrej Borsenkow"'s message of Tue, 2 May 2000 16:19:13 +0400 Subject: Re: something strange with case insensitive matching Andrej Borsenkow wrote: > This one correctly completes: > > bor@itsrm2% sudo rm /t/sh/z/-2/f/B > bor@itsrm2% sudo rm /tools/share/zsh/3.1.7-pre-2/functions/B > Completing file > Base/ Builtins/ > > but this one not > > bor@itsrm2% sudo rm /t/sh/z/-2/f/b > bor@itsrm2% sudo rm /t/sh/z/-2/f/b > Completing `arguments', `file', or `option' It *does* complete correctly. > ... > > zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'r:|[._-]=* > r:|=*' 'r:|[.-]=** r:|=**' If you want partial word matching and case-insensitivity at the same time, you have to tell 'em: zstyle ':completion:*' matcher-list \ '' \ 'm:{a-z}={A-Z}' \ 'm:{a-z}={A-Z} r:|[._-]=* r:|=*' \ 'm:{a-z}={A-Z} r:|[.-]=** r:|=**' Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de