From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26705 invoked from network); 13 Jan 1999 16:17:05 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 13 Jan 1999 16:17:05 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id LAA05957; Wed, 13 Jan 1999 11:15:49 -0500 (EST) Resent-Date: Wed, 13 Jan 1999 11:15:44 -0500 (EST) From: "Bart Schaefer" Message-Id: <990113081507.ZM17393@candle.brasslantern.com> Date: Wed, 13 Jan 1999 08:15:07 -0800 In-Reply-To: <19990113101208.A6023@fysh.org> Comments: In reply to Phil Pennock "local arrays" (Jan 13, 10:12am) References: <19990113101208.A6023@fysh.org> X-Mailer: Z-Mail (4.0b.820 20aug96) To: Zsh Users Subject: Re: local arrays MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"-j3A42.0.WS1.iQCds"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/2016 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Jan 13, 10:12am, Phil Pennock wrote: } Subject: local arrays } } Is there a way in zsh-3.0.5 (or zsh-3.1.x) to use one command to declare } a variable to be both local and an array? No, there isn't. This is even documented, poorly (a bit better in pws-4, because it was part of my rewrite of the `typeset' documentation). Why do you need to do this? The variable will assume array-ness upon the first array assignment to it. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com