From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10831 invoked from network); 27 Oct 2004 15:44:37 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 27 Oct 2004 15:44:37 -0000 Received: (qmail 65137 invoked from network); 27 Oct 2004 15:44:31 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Oct 2004 15:44:31 -0000 Received: (qmail 4482 invoked by alias); 27 Oct 2004 15:44:21 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8136 Received: (qmail 4461 invoked from network); 27 Oct 2004 15:44:19 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 27 Oct 2004 15:44:19 -0000 Received: (qmail 64127 invoked from network); 27 Oct 2004 15:44:19 -0000 Received: from mail36.messagelabs.com (193.109.254.211) by a.mx.sunsite.dk with SMTP; 27 Oct 2004 15:44:12 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-11.tower-36.messagelabs.com!1098891851!10641553 X-StarScan-Version: 5.2.10; banners=-,-,- X-Originating-IP: [158.234.9.163] Received: (qmail 11327 invoked from network); 27 Oct 2004 15:44:11 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-11.tower-36.messagelabs.com with SMTP; 27 Oct 2004 15:44:11 -0000 Received: from trentino.logica.co.uk ([158.234.142.61]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id i9RFiBn6015957 for ; Wed, 27 Oct 2004 16:44:11 +0100 Received: from trentino.logica.co.uk (localhost [127.0.0.1]) by trentino.logica.co.uk (Postfix) with ESMTP id 3A9221BAE5 for ; Wed, 27 Oct 2004 17:43:51 +0200 (CEST) X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <20041027145444.GB10003@DervishD> From: Oliver Kiddle References: <20041027132610.GA9928@DervishD> <15603.1098886106@trentino.logica.co.uk> <20041027145444.GB10003@DervishD> To: Zsh Users Subject: Re: compsys issues Date: Wed, 27 Oct 2004 17:43:51 +0200 Message-ID: <16515.1098891831@trentino.logica.co.uk> X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 DervishD wrote: > > OK, but that doesn't solve the problem I explained below. And I > assumed that I must use $PREFIX :? I don't understand why I must > remove the last path element from PREFIX :? Sorry, I probably only confused things by mentioning that point. It only really matters if you use matching control. For example, if you want case-insensitive matching. If $PREFIX contains `mo', mo* would not match a file named More while just adding * as matches allows the completion matching control to decide for itself which files match. > That works perfectly, thanks a lot :) The only part I didn't > understand was the -W flag. I mean, the manual says this flag adds the > string to the WORDS, and I though that the process was: -W only controls the way the -f option works. The string is added to the WORDS purely for the purpose of finding out whether the match refers to a regular file, a directory or whatever. -W has no effect on what the list of matches will be. Try removing the -W and -f options from compadd and use `-S /' instead if you want. > But if I understand correctly, the string that follows '-W' is > added *before* compadd does the matching, am I wrong? Whether it is before or after makes no difference. The string following -W has nothing to do with matching. Oliver