Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: local arrays



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



Messages sorted by: Reverse Date, Date, Thread, Author