From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18784 invoked from network); 10 Jul 2001 08:08:18 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 10 Jul 2001 08:08:18 -0000 Received: (qmail 26133 invoked by alias); 10 Jul 2001 08:07:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15352 Received: (qmail 26122 invoked from network); 10 Jul 2001 08:07:52 -0000 From: Sven Wischnowsky Date: Tue, 10 Jul 2001 10:05:29 +0200 (MET DST) Message-Id: <200107100805.KAA14280@beta.informatik.hu-berlin.de> To: zsh-workers@sunsite.dk Subject: Re: zsh 4.0.1 _man bug In-Reply-To: <1010710074900.ZM28083@candle.brasslantern.com> [this one moved to -workers, I'll send the new _man to -users in a moment] Bart Schaefer wrote: > On Jul 10, 9:04am, Max Ischenko wrote: > } > } man n listb -> man n listbox.n > } > } Does anyone have a fix for this? > > Try 4.0.2 ... the _man completion function was significantly improved. But has a similar problem because I didn't change that pattern at the end. Bye Sven Index: Completion/Unix/Command/_man =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_man,v retrieving revision 1.2 diff -u -r1.2 _man --- Completion/Unix/Command/_man 2001/06/21 12:53:55 1.2 +++ Completion/Unix/Command/_man 2001/07/10 08:06:08 @@ -47,16 +47,15 @@ pages=( $dirs ) compfiles -p pages '' '' "$matcher" '' dummy '*' + pages=( ${^~pages}(N:t:r) ) - pages=( $~pages(:t:r) ) - (($#mrd)) && pages[$#pages+1]=($(awk $awk $mrd)) # Remove any compression suffix, then remove the minimum possible string # beginning with .<->: that handles problem cases like files called # `POSIX.1.5'. - compadd "$@" - ${pages%.<->*} + compadd "$@" - ${pages%.(?|<->*)} } _man "$@" -- Sven Wischnowsky wischnow@informatik.hu-berlin.de