From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7747 invoked from network); 1 Oct 2008 13:21:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 1 Oct 2008 13:21:56 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 15827 invoked from network); 1 Oct 2008 13:21:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Oct 2008 13:21:47 -0000 Received: (qmail 28440 invoked by alias); 1 Oct 2008 13:21:35 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25793 Received: (qmail 28416 invoked from network); 1 Oct 2008 13:21:31 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 1 Oct 2008 13:21:31 -0000 Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.171]) by bifrost.dotsrc.org (Postfix) with ESMTP id D948F8030847 for ; Wed, 1 Oct 2008 15:21:21 +0200 (CEST) Received: by wf-out-1314.google.com with SMTP id 29so589721wff.3 for ; Wed, 01 Oct 2008 06:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=KdlHH58oU+HQjBNi3qbZvs3otyXigOIciAvDCsvRNO4=; b=TaCDvcO/0HdX1TfyeyKXtKtrGdmQkAb9tRjy8FkBR2SphwcYfYJO4+RZd8k53mk8XA P7toxmvRyghqtrS2YmfyjJaP/RoI/Sql4DLG4q3TcRDVT+0dHIlFjppduKcUfEux63EW Bwo2SDyPbFgYdOqRr1pvtFID60WsczfRfBvfw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=wfvSU/Q8fnK9o8d0SYe7rhktmfMmb+QUZO5jneiuvRzP/vV2O2H8qKtNRlxAhHsmUu Xcd+2+V3ndv70LGP2xWcHXbDHbJ7SR5PwhfBGJDuBoKmM1dr89d84dRwr0owhqIx+Z/Y rHxQTXpV5a/OWTDP5v+96pL3ZMl4q4Hh3XATA= Received: by 10.142.215.5 with SMTP id n5mr3386974wfg.61.1222867280024; Wed, 01 Oct 2008 06:21:20 -0700 (PDT) Received: by 10.142.172.8 with HTTP; Wed, 1 Oct 2008 06:21:19 -0700 (PDT) Message-ID: Date: Wed, 1 Oct 2008 15:21:19 +0200 From: "Nikolai Weibull" Sender: nikolai.weibull@gmail.com To: "Oliver Kiddle" Subject: Re: rm(1) completion definition Cc: "Zsh Workers" In-Reply-To: <12702.1222853932@dcle12> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <12702.1222853932@dcle12> X-Google-Sender-Auth: 5cb5c9e53cc5e622 X-Virus-Scanned: ClamAV 0.92.1/8366/Wed Oct 1 12:44:34 2008 on bifrost X-Virus-Status: Clean On Wed, Oct 1, 2008 at 11:38, Oliver Kiddle wrote: > Nikolai Weibull wrote: >> 1. It seems that my trick to disable --force and --recursive on >> non-GNU systems doesn't work. > This is better done as: > args=( ${args:#*--(force|recursive)\[*} ) Thanks, will change to that. >> 2. I'm not sure if the zstyle thing is correct, but it's definitely >> what you want it to do. Is there a better way to achieve the same >> effect? > > The problem with the zstyle stuff is that you've used single quotes so > $curcontext is not expanded. Duh. Forgot to change that. > The right way to do this would be to work out exactly what can't be > completed and build up a suitable glob pattern to pass to _files with > -g. Ugh. That sounds complicated. > One other point: I really hope that running rm --version can't possibly > actually result in a file or files being removed on some system. I'm a > bit uneasy about it. Perhaps you should try using rm --help instead > because there's no `r' in help. OK, sounds reasonable. Thank you for your pointers