nushell / engine-q

MIT License
58 stars 40 forks source link

let-env works inside a def-env block, but hide does not #907

Closed ajeetdsouza closed 2 years ago

ajeetdsouza commented 2 years ago

One would assume that the two commands have the same semantics:

$ def-env set-foo [] { let-env foo = "foo" }
$ set-foo
$ env # foo is visible
$ def-env unset-foo [] { hide foo }
$ unset-foo
$ env # foo is still visible

edit: follow the discord conversation here