From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16926 invoked from network); 23 Mar 2002 18:57:15 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 23 Mar 2002 18:57:15 -0000 Received: (qmail 24157 invoked by alias); 23 Mar 2002 18:56:54 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4766 Received: (qmail 24145 invoked from network); 23 Mar 2002 18:56:53 -0000 Date: Sat, 23 Mar 2002 19:56:49 +0100 From: Sven Guckes To: ZShell Users Subject: var expansion in glob pattern? Message-ID: <20020323185649.GA12320@ritz.math.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i X-Virus-Scanned: by AMaViS perl-11 (NAI-uvscan@math.fu-berlin.de) Most of my mail folders are small - usually just questions and answers about some program. so I tried to run a quick statistics on my Mail directory using the zsh and its file globbing by size: $ cd ~/Mail $ for i in 1 2 3 4 5 10 15 20 25 30 35 40 35 40 45 50; do ls *(.Lk-$i)|wc -l end zsh: parse error near `end' as you can see, it failed. i suppose there is no variable substitution inside globbing brackets. but I'm sure there must be a way. any hints? Sven