From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19046 invoked from network); 26 Sep 2006 03:00:26 -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=AWL,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; 26 Sep 2006 03:00:26 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 48017 invoked from network); 26 Sep 2006 03:00:19 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Sep 2006 03:00:19 -0000 Received: (qmail 15300 invoked by alias); 26 Sep 2006 03:00:12 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10760 Received: (qmail 15290 invoked from network); 26 Sep 2006 03:00:11 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 26 Sep 2006 03:00:11 -0000 Received: (qmail 46834 invoked from network); 26 Sep 2006 03:00:11 -0000 Received: from p5485331a.dip0.t-ipconnect.de (HELO localhost) (84.133.51.26) by a.mx.sunsite.dk with SMTP; 26 Sep 2006 03:00:09 -0000 Received: from localhost ([127.0.0.1]) by localhost with esmtp (Exim 4.60) (envelope-from ) id 1GS3B2-0000C7-0W for zsh-users@sunsite.dk; Tue, 26 Sep 2006 05:00:08 +0200 Date: Tue, 26 Sep 2006 05:00:07 +0200 (CEST) Message-Id: <20060926.050007.74745714.Meino.Cramer@gmx.de> To: zsh-users@sunsite.dk Subject: Globbing confusion From: Meino Christian Cramer X-Mailer: Mew version 5.1 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I am currently writing a script to remove certain files/directories from my /tmp for cleanup purposes. Besides others I want to to match all _directories_ matching the patterm mc-4.6.1* but dont want to remove _files_ of that pattern. And I dont want any errormessage, if a certain directory/file could not be found. For that purpose I tested on the commandline the following cd /tmp ls -ld ertertert(N/) # ertertert does not exist under /tmp Instead of simply getting nothing back with no "not found" I got drwxrwxrwt 72 root root 11776 2006-09-26 04:39 . In a script I would kill . in that case if "ls -ld" is replaced by "rm -rf" ??? What did I wrong here ? Keep hacking! mcc