### 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 ▶ 2 ``` `i` should only be valid inside `for` loop. ### Output of "elvish -version" 0.21.0 ### Code of Conduct - [x] I agree to follow Elvish's [Code of Conduct](https://src.elv.sh/CODE_OF_CONDUCT.md).
What happened, and what did you expect to happen?
ishould only be valid insideforloop.Output of "elvish -version"
0.21.0
Code of Conduct