From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2288 invoked from network); 15 Feb 2006 00:10:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 15 Feb 2006 00:10:16 -0000 Received: (qmail 14310 invoked from network); 15 Feb 2006 00:10:10 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Feb 2006 00:10:10 -0000 Received: (qmail 25872 invoked by alias); 15 Feb 2006 00:10:00 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9927 Received: (qmail 25850 invoked from network); 15 Feb 2006 00:09:59 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 15 Feb 2006 00:09:59 -0000 Received: (qmail 12754 invoked from network); 15 Feb 2006 00:09:59 -0000 Received: from wproxy.gmail.com (64.233.184.200) by a.mx.sunsite.dk with SMTP; 15 Feb 2006 00:09:58 -0000 Received: by wproxy.gmail.com with SMTP id 57so1188095wri for ; Tue, 14 Feb 2006 16:09:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UMQEqIiRXspcW9dJpfxph/wk7FwWuoV5npo4Mfn2ct59KBQrCNGmEtAGBciOW8Q3D2yuWfROANqKlzetIo0HbgyGOgnlRIK43us/oDt2UVlkaWBw00glMMkv8koC3d8hnI8vCFTtEEqD6yjJEroEb1JdUhutNEx7pu9H94PQkCE= Received: by 10.65.205.12 with SMTP id h12mr704357qbq; Tue, 14 Feb 2006 16:09:56 -0800 (PST) Received: by 10.65.23.18 with HTTP; Tue, 14 Feb 2006 16:09:56 -0800 (PST) Message-ID: Date: Tue, 14 Feb 2006 19:09:56 -0500 From: Ian Langworth To: zsh-users@sunsite.dk Subject: Re: compdef weirdness with function In-Reply-To: <1060211204556.ZM6312@candle.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1060211204556.ZM6312@candle.brasslantern.com> On 2/11/06, Bart Schaefer wrote: > On Feb 11, 2:57pm, Ian Langworth wrote: > } > } If I add a completion definition for some arbitrary, undefined symbol, > } > } % compdef _perl_modules foo > > The problem is with _perl_modules. It expects all commands for which it > complete to be synonyms for perl; it's attempting to run > > foo -e 'print @INC' Weird and gross. Thanks :) I've added an if [ "$1" =3D "-e" ] to my function as a workaround. -- Ian Langworth