From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21527 invoked from network); 3 Dec 1998 21:24:13 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 3 Dec 1998 21:24:13 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id QAA01631; Thu, 3 Dec 1998 16:22:22 -0500 (EST) Resent-Date: Thu, 3 Dec 1998 16:22:16 -0500 (EST) Message-ID: <19981203212653.56779@athenaeum.demon.co.uk> Date: Thu, 3 Dec 1998 21:26:53 +0000 From: Phil Pennock To: zsh-users@math.gatech.edu Subject: Re: counting in "for" loops Mail-Followup-To: zsh-users@math.gatech.edu References: <19981202170030.A2789@math.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1 In-Reply-To: ; from "Geoff Wing" on Thu 3 Dec 1998 (4:22 +0000) Organisation: Organisation? Here? No, over there ----> X-Disclaimer: Any views expressed in this message, where not explicitly attributed otherwise, are mine and mine alone. Such views do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. X-Phase-of-Moon: The Moon is Full Resent-Message-ID: <"9X1oY3.0.4P.64mPs"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1957 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Typing away merrily, Geoff Wing produced the immortal words: > like and use it. It's not as if there aren't a few choices. For starters: Mostly just variants on a theme. With the problem that they all look to produce: 12345678910 (with no newline) % ( local foo; set -A foo {1..10} ; print $foo ) % ( local foo; print ${(A)foo::={1..10}} ) Handle it, without the trailing space of another suggestion. I wanted: % print ${(A)_::={1..10}} which would nicely leave $_ with the values, but _ is a readonly variable. *sigh* -- --> Phil Pennock ; GAT d- s+:+ a22 C++(++++) UL++++/I+++/S+++/H+ P++@ L+++ E-@ W(+) N>++ o !K w--- O>+ M V !PS PE Y+ PGP+ t-- 5++ X+ R !tv b++>+++ DI+ D+ G+ e+ h* r y?