From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16822 invoked from network); 12 Jul 2004 13:25:34 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.85) by ns1.primenet.com.au with SMTP; 12 Jul 2004 13:25:34 -0000 Received: (qmail 14405 invoked from network); 12 Jul 2004 13:28:07 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Jul 2004 13:28:07 -0000 Received: (qmail 8451 invoked by alias); 12 Jul 2004 13:24:20 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7685 Received: (qmail 8417 invoked from network); 12 Jul 2004 13:24:20 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.85) by sunsite.dk with SMTP; 12 Jul 2004 13:24:20 -0000 Received: (qmail 12975 invoked from network); 12 Jul 2004 13:27:03 -0000 Received: from madrid10.amenworld.com (62.193.203.32) by a.mx.sunsite.dk with SMTP; 12 Jul 2004 13:26:50 -0000 Received: from DervishD.pleyades.net (212.Red-80-35-44.pooles.rima-tde.net [80.35.44.212]) by madrid10.amenworld.com (8.10.2/8.10.2) with ESMTP id i6CDLlc13119; Mon, 12 Jul 2004 15:21:48 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1Bk0lC-0000GX-00>; Mon, 12 Jul 2004 15:22:22 +0200 Date: Mon, 12 Jul 2004 15:22:21 +0200 From: DervishD To: Klaus Wacker Cc: ZSH User List Subject: Re: Maildir empty? Message-ID: <20040712132221.GA818@DervishD> Mail-Followup-To: Klaus Wacker , ZSH User List References: <20040712073705.GN2860@born.physik.uni-dortmund.de> <690.1089625465@trentino.logica.co.uk> <20040712124144.GO2860@born.physik.uni-dortmund.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20040712124144.GO2860@born.physik.uni-dortmund.de> User-Agent: Mutt/1.4.2.1i Organization: Pleyades X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-0.0 required=6.0 tests=BAYES_44 autolearn=no version=2.63 X-Spam-Hits: -0.0 Hi Klaus and Oliver :) * Klaus Wacker dixit: > > Does this do what you want: > > if [ -z $i/*/*([1]) ] > > You need to use the single brackets so that the $i/*/* is treated as a > > filename expansion. Why are single brackets needed here instead of [[ -z ... ]]? Why with single brackets the $i/*/* construction is treated as a filename expansion? Is it not using double brackets? Thanks :) Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/