elves / elvish

Powerful scripting language & versatile interactive shell
https://elv.sh/
BSD 2-Clause "Simplified" License
5.53k stars 297 forks source link

use edit breaks the edit namespace #1692

Open fennewald opened 1 year ago

fennewald commented 1 year ago
~> echo $edit:abbr
[&]
~> use edit
Exception: no such module: edit
[tty 2], line 1: use edit
~> echo $edit:abbr
Exception: variable $edit:abbr not found
[tty 3], line 1: echo $edit:abbr

It appears that failing to import the edit module will remove all edit names from the namespace. edit:abbr is chosen here to demo, but all edit symbols are removed.

Elvish version:

Version: 0.19.0-dev.0.20221005003058-684cfc2c82d7
Go version: go1.19.2
nichtsundniemand commented 12 months ago

Hmm there is a simple fix/workaround. You could try:

del edit:

For me that restores the old edit-namespace