From: Philippe Troin <phil@fifi.org>
To: zsh-workers@sunsite.dk
Subject: Local variable declaration in loops buglet...
Date: 04 Nov 2003 16:06:40 -0800 [thread overview]
Message-ID: <87y8uv3chb.fsf@ceramic.fifi.org> (raw)
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.
next reply other threads:[~2003-11-05 0:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-05 0:06 Philippe Troin [this message]
2003-11-05 4:08 ` Bart Schaefer
2003-11-05 6:53 ` Philippe Troin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y8uv3chb.fsf@ceramic.fifi.org \
--to=phil@fifi.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).