From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16940 invoked from network); 12 Jul 2004 14:18:37 -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 14:18:37 -0000 Received: (qmail 6889 invoked from network); 12 Jul 2004 14:21:52 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Jul 2004 14:21:52 -0000 Received: (qmail 19968 invoked by alias); 12 Jul 2004 14:18:00 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7687 Received: (qmail 19953 invoked from network); 12 Jul 2004 14:17:59 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.85) by sunsite.dk with SMTP; 12 Jul 2004 14:17:59 -0000 Received: (qmail 5741 invoked from network); 12 Jul 2004 14:21:20 -0000 Received: from born.physik.uni-dortmund.de (129.217.160.155) by a.mx.sunsite.dk with SMTP; 12 Jul 2004 14:21:07 -0000 Received: by born.physik.Uni-Dortmund.DE (Postfix, from userid 1014) id A06A011386; Mon, 12 Jul 2004 16:17:20 +0200 (CEST) Date: Mon, 12 Jul 2004 16:17:20 +0200 From: Klaus Wacker To: ZSH User List Subject: Re: Maildir empty? Message-ID: <20040712141720.GQ2860@born.physik.uni-dortmund.de> Reply-To: wacker@Physik.Uni-Dortmund.DE References: <20040712073705.GN2860@born.physik.uni-dortmund.de> <200407121000.i6CA0YIW002804@news01.csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407121000.i6CA0YIW002804@news01.csr.com> User-Agent: Mutt/1.4i 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 On Mon, Jul 12, 2004 at 11:00:34AM +0100, Peter Stephenson wrote: > Klaus Wacker wrote: > > Dear zsh, is there a zsh-internal way to find out whether a maildir is > > empty? Or more generally, whether a directory tree contains no > > files? > > This will be fixed in 4.2.1 with the syntax `*(/^F)'. (F) (for full) > indicates a directory with files. (^F) indcates either not a directory > or no files. (/^F) indicates a directory with no files. Will this work recursively for subdirectories? A maildir directory is never empty, it always contains 3 subdirectories. What I need to find out is whether all those are empty. -- Klaus Wacker wacker@Physik.Uni-Dortmund.DE Experimentelle Physik V http://www.physik.uni-dortmund.de/~wacker Universitaet Dortmund Tel.: +49 231 755 3587 D-44221 Dortmund Fax: +49 231 755 4547