Qi Xiao
Qi Xiao
Interesting, I'm not sure why it doesn't work.
The closest thing Elvish now has to a beginner's introduction is the ["fundamentals" doc](https://elv.sh/learn/fundamentals.html) but I am not happy about its current state: * It should be expanded to cover...
Interestingly, the line editor does not function in term and ansi-term modes of Emacs either. This is worth investigating.
Example: ```elvish x = 2 echo $local:[x] # should print 2 ```
`keys $local:` crashes Elvish today, at least that shouldn't happen.
On second thought, renamed the issue back - the crash should be high priority to fix.
This is indeed a bug, and it has something to do with how terminal interrupts are relayed to Elvish functions. Aiming to fix this before 0.14.
My comment: I am not quite sure about the consequences of making Elvish the login shell. I personally have refrained from doing so, so we want to suggest an alternative...
@hanche you're right, this proposal is about extents. I shouldn't have used "dynamic scoping"; that muddies the water. The variables themselves are still lexically scoped, it's their values that can...
Thanks, reworded the title to reflect that this is a bug.