From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18665 invoked from network); 10 Aug 2005 22:51:42 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 10 Aug 2005 22:51:42 -0000 Received: (qmail 29348 invoked from network); 10 Aug 2005 22:51:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 10 Aug 2005 22:51:34 -0000 Received: (qmail 25216 invoked by alias); 10 Aug 2005 22:51:27 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9285 Received: (qmail 25206 invoked from network); 10 Aug 2005 22:51:26 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 10 Aug 2005 22:51:25 -0000 Received: (qmail 28279 invoked from network); 10 Aug 2005 22:51:25 -0000 Received: from zproxy.gmail.com (64.233.162.201) by a.mx.sunsite.dk with SMTP; 10 Aug 2005 22:51:21 -0000 Received: by zproxy.gmail.com with SMTP id i11so159786nzh for ; Wed, 10 Aug 2005 15:51:20 -0700 (PDT) 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=RzwOwQQJOP1FHJ3MtmYUxHV4oneGjRUGH0BRh1xC6LK0sFkTmPYuAltBbBA//zfrIr+DYSZf15uQ9Blnup4JdgfOngXzpZdpcz0XRF/ehr581Add8iXu2w0/A8PFE6akqmIbC/k/MMKZOqET6K3unaU55+ns2N+uIhs9GFkgiKM= Received: by 10.36.80.14 with SMTP id d14mr987408nzb; Wed, 10 Aug 2005 15:51:20 -0700 (PDT) Received: by 10.36.20.10 with HTTP; Wed, 10 Aug 2005 15:51:20 -0700 (PDT) Message-ID: <237967ef050810155178939027@mail.gmail.com> Date: Thu, 11 Aug 2005 00:51:20 +0200 From: Mikael Magnusson To: zsh-users@sunsite.dk Subject: Re: rm nonexisting*; alias with parameters? In-Reply-To: <7c737f3005081013313151c308@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <7c737f3005081012187ed74a81@mail.gmail.com> <20050810200620.E765C8633@pwstephenson.fsnet.co.uk> <7c737f3005081013313151c308@mail.gmail.com> X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RCVD_BY_IP autolearn=ham version=3.0.4 On 8/10/05, Deliverable Mail wrote: > Thanks, Peter! (I hear you, Ligesh... will do later :) Worked as > described. Making rm -f does not change zsh behavior, of course, as > globbing happens before -f can kick in -- so it's a bit confusing that > -f doesn't work. Thankfully zsh says zsh: before its globbing error. > It's a tricky fault for those who expect rm -f to shut up and do it... >=20 > Alexy You can also add (N) directly after the pattern without the options set and they will silently expand to nothing. ie rm *.txt *.bak(N) will fail if there are no *.txt files but no *.bak files is okay.