variable leakage out of `for` loop
Author: tw4452852Created Aug 4, 2025Updated Aug 24, 2025
What happened, and what did you expect to happen?
~> put $i
Compilation error: variable $i not found
[tty 162]:1:5-6: put $i
~> for i [1 2] { nop }
~> put $i
▶ 2i should only be valid inside for loop.
Output of "elvish -version"
0.21.0
Code of Conduct
- I agree to follow Elvish's Code of Conduct.
Source: elves/elvish