From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12870 invoked from network); 27 Oct 2004 16:04:56 -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 16:04:56 -0000 Received: (qmail 78995 invoked from network); 27 Oct 2004 16:04:42 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Oct 2004 16:04:42 -0000 Received: (qmail 14038 invoked by alias); 27 Oct 2004 16:04:28 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8137 Received: (qmail 14022 invoked from network); 27 Oct 2004 16:04:26 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 27 Oct 2004 16:04:26 -0000 Received: (qmail 77996 invoked from network); 27 Oct 2004 16:04:26 -0000 Received: from ns9.hostinglmi.net (213.194.149.146) by a.mx.sunsite.dk with SMTP; 27 Oct 2004 16:04:25 -0000 Received: from 212.red-80-35-44.pooles.rima-tde.net ([80.35.44.212]:51071 helo=dervishd.net) by ns9.hostinglmi.net with esmtpa (Exim 4.43) id 1CMqHg-00081g-Cu; Wed, 27 Oct 2004 18:04:25 +0200 Date: Wed, 27 Oct 2004 18:07:10 +0200 From: DervishD To: Oliver Kiddle Cc: Zsh Users Subject: Re: compsys issues Message-ID: <20041027160710.GA10330@DervishD> Mail-Followup-To: Oliver Kiddle , Zsh Users References: <20041027132610.GA9928@DervishD> <15603.1098886106@trentino.logica.co.uk> <20041027145444.GB10003@DervishD> <16515.1098891831@trentino.logica.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <16515.1098891831@trentino.logica.co.uk> User-Agent: Mutt/1.4.2.1i Organization: DervishD X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ns9.hostinglmi.net X-AntiAbuse: Original Domain - sunsite.dk X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - dervishd.net X-Source: X-Source-Args: X-Source-Dir: 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 Hi Oliver :) * Oliver Kiddle dixit: > > 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. OK, now I understand. If I use $PREFIX and '-M', that won't work, am I right? If I use $PREFIX I should use too :t or something similar so it affects the globbing pattern but not the matching mechanism of compadd, right? > > 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. Nice :)) I want coloring in the matching list, so I'll keep -f. > > 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. Now I understand, right. I was confused by the manual and deduced that -W affected the matching. Thanks a lot for your kind and useful explanation :) Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.dervishd.net & http://www.pleyades.net/