From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18118 invoked from network); 24 Mar 2002 00:19:25 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 24 Mar 2002 00:19:25 -0000 Received: (qmail 26874 invoked by alias); 24 Mar 2002 00:19:06 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4770 Received: (qmail 26861 invoked from network); 24 Mar 2002 00:19:05 -0000 Date: Sun, 24 Mar 2002 01:19:01 +0100 From: Sven Guckes To: zsh-users@sunsite.dk Subject: Re: var expansion in glob pattern? Message-ID: <20020324001901.GB12484@ritz.math.fu-berlin.de> References: <20020323185649.GA12320@ritz.math.fu-berlin.de> <1020323193618.ZM28746@candle.brasslantern.com> <1020323195417.ZM29005@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1020323195417.ZM29005@candle.brasslantern.com> User-Agent: Mutt/1.3.27i X-Virus-Scanned: by AMaViS perl-11 (NAI-uvscan@math.fu-berlin.de) * Bart Schaefer [2002-03-23 19:54]: > j=0 > for i in 1 2 3 4 5 10 15 20 25 30 35 40 35 40 45 50; do > print ${(l:3:)i}k : "$[${#${(f)$(print -l x *(N.Lk-${i}Lk+${j}))}}-1]" > ((j=i-1)) > done > print Rest : "$[${#${(f)$(print -l x *(N.Lk+${j}))}}-1]" (Bart's print) (not in output) 1k : 0 . 2k : 202 .** 3k : 431 .**** 4k : 656 .******. 5k : 717 .******* 10k : 1316 .************* 15k : 551 .*****. 20k : 306 .*** 25k : 177 .*. 30k : 128 .* 35k : 102 .* 40k : 75 .. 35k : 0 . 40k : 75 .. 45k : 46 .. 50k : 41 . Rest : 502 .***** thanks, Bart! :-) Sven [reading up on "print" and glob patterns]