From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23588 invoked from network); 5 Jul 2005 15:29:23 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 5 Jul 2005 15:29:23 -0000 Received: (qmail 33003 invoked from network); 5 Jul 2005 15:29:17 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Jul 2005 15:29:17 -0000 Received: (qmail 18101 invoked by alias); 5 Jul 2005 15:29:11 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9035 Received: (qmail 18091 invoked from network); 5 Jul 2005 15:29:10 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 5 Jul 2005 15:29:10 -0000 Received: (qmail 31914 invoked from network); 5 Jul 2005 15:29:10 -0000 Received: from mxfep01.bredband.com (195.54.107.70) by a.mx.sunsite.dk with SMTP; 5 Jul 2005 15:29:01 -0000 Received: from puritan.pnetwork ([213.112.43.228] [213.112.43.228]) by mxfep01.bredband.com with ESMTP id <20050705152858.BPXA26070.mxfep01.bredband.com@puritan.pnetwork> for ; Tue, 5 Jul 2005 17:28:58 +0200 Received: by puritan.pnetwork (Postfix, from userid 1000) id 591A1ADFEA; Tue, 5 Jul 2005 19:28:46 +0200 (CEST) Date: Tue, 5 Jul 2005 19:28:46 +0200 From: Nikolai Weibull To: zsh-users Subject: Re: Adding a prefix to certain filename completions Message-ID: <20050705172846.GB5362@puritan.pnetwork> Mail-Followup-To: zsh-users References: <20050704193711.GF6330@puritan.pnetwork> <20050705042324.GA21301@picard.franken.de> <20050705080946.GC5333@puritan.pnetwork> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.8i X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 William Scott wrote: > I don't think this is a completion issue. I know that the completion system can be made to suit this need. Filenames beginning with a = are escaped properly with the right settings. > In any case, this works: > > function vim { command vim ./"$@" } That will definitely not work. Specifically it won’t work for multiple file arguments (or options for that matter), nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}