From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23650 invoked from network); 20 Aug 1997 07:40:57 -0000 Received: from math.gatech.edu (HELO math) (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 20 Aug 1997 07:40:57 -0000 Received: (from list@localhost) by math (8.8.5/8.8.5) id DAA17028; Wed, 20 Aug 1997 03:34:57 -0400 (EDT) Resent-Date: Wed, 20 Aug 1997 03:34:57 -0400 (EDT) Message-Id: <199708200735.JAA12397@hydra.ifh.de> To: zsh-workers@math.gatech.edu (Zsh hackers list) Subject: local doesn't work in zsh 3.1.2 Date: Wed, 20 Aug 1997 09:35:24 +0200 From: Peter Stephenson Resent-Message-ID: <"RvtM21.0._94.Wuf-p"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3450 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu % 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 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.