Maybe bug regarding overriding built in commands in a shared module space #15315
Labels
modules
question
the issue author asks something
scoping/name-resolution
How Nu finds which variables/functions are in scope and to what they are bound
Question
Let say i have two modules
And a global
config.nu
fileThis results in a similar error:
Apparently all modules are loaded in the same space, as some sort of lookbehind occurs for modules and it overrides built-ins with custom commands.
Am I doing something incorrectly here? What I initially assumed is that if I import one module into another the target of the import should not affect the logic of the imported module.
Note
I'm quite unexperienced with nushell behavior as a programming language so sorry if all of this is nonsense
Additional context and details
The text was updated successfully, but these errors were encountered: