Variable not captured correctly #5994
Labels
🐛 bug
Something isn't working
hooks
Hooks are used to react to changes during interactive execution
scoping/name-resolution
How Nu finds which variables/functions are in scope and to what they are bound
Describe the bug
It seems like in some tricky cases the variables are not captured correctly.
How to reproduce
Create a
.nu-env
file with the following contents:Then:
Expected behavior
I would expect the
$n
variable to be captured from the argument ofhook-shell
and equal to the$env.NUSHELL_CURRENT_SHELL
.Screenshots
No response
Configuration
Additional context
No response
The text was updated successfully, but these errors were encountered: