From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27524 invoked from network); 27 Sep 2006 14:23:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 27 Sep 2006 14:23:14 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 53483 invoked from network); 27 Sep 2006 14:23:08 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Sep 2006 14:23:08 -0000 Received: (qmail 25155 invoked by alias); 27 Sep 2006 14:22:59 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10767 Received: (qmail 25145 invoked from network); 27 Sep 2006 14:22:58 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 27 Sep 2006 14:22:58 -0000 Received: (qmail 52277 invoked from network); 27 Sep 2006 14:22:58 -0000 Received: from mx4-1.spamtrap.magma.ca (209.217.78.176) by a.mx.sunsite.dk with SMTP; 27 Sep 2006 14:22:56 -0000 Received: from mail4.magma.ca (mail4.internal.magma.ca [10.0.10.14]) by mx4-1.spamtrap.magma.ca (8.13.1/8.13.1) with ESMTP id k8REMqNo000360 for ; Wed, 27 Sep 2006 10:22:52 -0400 Received: from princo.homelinux.org (ottawa-hs-64-26-147-28.d-ip.magma.ca [64.26.147.28]) by mail4.magma.ca (Magma's Mail Server) with ESMTP id k8REMplE013052 for ; Wed, 27 Sep 2006 10:22:52 -0400 Received: from jrdavid by princo.homelinux.org with local (Exim 3.36 #1 (Debian)) id 1GSaJH-0001te-00 for ; Wed, 27 Sep 2006 10:22:51 -0400 Date: Wed, 27 Sep 2006 10:22:51 -0400 From: Jean-Rene David To: zsh-users@sunsite.dk Subject: Re: Globbing confusion Message-ID: <20060927142251.GA6923@princo> Mail-Followup-To: zsh-users@sunsite.dk References: <20060926.050007.74745714.Meino.Cramer@gmx.de> <20060926042423.GA31728@princo> <20060927.044622.79063538.Meino.Cramer@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20060927.044622.79063538.Meino.Cramer@gmx.de> User-Agent: Mutt/1.5.13 (2006-08-11) X-magma-MailScanner-Information: Magma Mailscanner Service X-magma-MailScanner: Clean * Meino Christian Cramer [2006.09.26 23:00]: > I inserted > > rm -rf /tmp/mc-4.6.1i*(/) > > into my cleanup-script for /tmp and executed it _twice_. Oh, my mistake. You need the (N) flag because the warning is generated by the shell when the globbing pattern generates no match, not by "rm". Sorry. > I tried the following: > I mkdir a directory mc-4.6.1A and touch mc-4.6.1B then I did a > rm -rf /tmp/mc-4.6.1*(/N) from within a script. BOTH entries were > removed. Only the directory should be removed. Works here... % zsh --version zsh 4.3.2 (i686-pc-linux-gnu) -- JR