zsh-workers
 help / color / mirror / code / Atom feed
* Local variable declaration in loops buglet...
@ 2003-11-05  0:06 Philippe Troin
  2003-11-05  4:08 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Philippe Troin @ 2003-11-05  0:06 UTC (permalink / raw)
  To: zsh-workers

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-11-05  6:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-05  0:06 Local variable declaration in loops buglet Philippe Troin
2003-11-05  4:08 ` Bart Schaefer
2003-11-05  6:53   ` Philippe Troin

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).