From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28808 invoked from network); 21 Aug 2001 17:58:51 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 21 Aug 2001 17:58:51 -0000 Received: (qmail 23490 invoked by alias); 21 Aug 2001 17:58:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15674 Received: (qmail 23479 invoked from network); 21 Aug 2001 17:58:41 -0000 From: Bart Schaefer Message-Id: <1010821175836.ZM22100@candle.brasslantern.com> Date: Tue, 21 Aug 2001 17:58:36 +0000 In-Reply-To: <1010821063843.ZM20952@candle.brasslantern.com> Comments: In reply to Bart Schaefer "Re: Few newbie questions.." (Aug 21, 6:38am) References: <001501c12a0a$564ed110$21c9ca95@mow.siemens.ru> <1010821063843.ZM20952@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: Few newbie questions.. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 21, I wrote: } } Index: Completion/Unix/Command/_man } + if [[ $sect = (<->*|1M|l|n) || $sect = \((*\|*)\) ]]; then I just noticed that this means that zsh% man l won't complete what you expect, because it tries to complete manual pages in section `l' that begin with `l'. (This is not new with my patch.) This means we should do something different when CURRENT==2, but I'm not sure exactly what. The easiest change is probably to replace + else + sect=$words[2] with + elif ((CURRENT > 2)) + sect=$words[2] but perhaps we should actually offer to complete section numbers? -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net