Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Local variable declaration in loops buglet...
- X-seq: zsh-workers 19221
- From: Philippe Troin <phil@xxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Local variable declaration in loops buglet...
- Date: 04 Nov 2003 16:06:40 -0800
- Mail-copies-to: nobody
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Sender: Philippe Troin <phil@xxxxxxxx>
Just found this one:
% zsh -f
ceramic% echo $ZSH_VERSION
4.0.6
ceramic% foo() { for i in 1 2 3; do local x; x=$i;done }
ceramic% foo
x=1
x=2
ceramic%
Moving the local out of the loop fixes the echo of course... But I do
not think it should matter.
Phil.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author