From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8651 invoked from network); 31 May 2001 13:32:42 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 31 May 2001 13:32:42 -0000 Received: (qmail 16067 invoked by alias); 31 May 2001 13:32:35 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14609 Received: (qmail 16056 invoked from network); 31 May 2001 13:32:34 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: Subject: RE: _man igores global matchers Date: Thu, 31 May 2001 17:32:13 +0400 Message-ID: <000301c0e9d6$19e4ebc0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <200105291218.OAA09076@beta.informatik.hu-berlin.de> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > > Look at _man, you'll see things like: > > rep=( $manpath/(sman|man|cat)*/${~approx}$PREFIX${~star}$SUFFIX.*(:t) ) > > I.e., it does its matching/filtering itself, before the completion code > has a chance to use any match specs. > > That's ugly. But caching could be pretty costly. Maybe we should make > it configurable, mentioning the problem with match specs? > > Any other ideas, anyone? > Is it possible just use _path_files? for i in $manpath; do _path_files -W $i '*.(bz2|z|gz|Z).<->*' done or like? Alternatively, it is nice having _path_files to support -O/-A flags. Was it not discussed somewhere? -andrej