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

local doesn't work in zsh 3.1.2



% unset foo; fn() { local foo; foo=(bar); }; fn; print $foo
bar

setting a variable as an array makes it forget that it's local.  This
may or may not be due to some patch since 3.1.2.  It's not in the
standard 3.0.4.

-- 
Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, Platanenallee 6, 15738 Zeuthen, Germany.



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