nushell/crates/nu-cmd-lang/src
Wind bae04352ca
overlay use: keep PWD after activating the overlay thought file. (#15566)
# Description
Fixes: #14048

The issue happened when re-using a ***module file***, and the overlay
already has already saved `PWD`, then nushell restores the `PWD`
variable after activating it.

This pr is going to fix it by restoring `PWD` after re-using a module
file.

# User-Facing Changes
`overlay use spam.nu` will always keep `PWD`, if `spam.nu` itself
doesn't change `PWD` while activating.

# Tests + Formatting
Added 2 tests.

# After Submitting
NaN
2025-04-21 20:09:08 +08:00
..
core_commands overlay use: keep PWD after activating the overlay thought file. (#15566) 2025-04-21 20:09:08 +08:00
default_context.rs add attr category @category to custom command attributes (#15137) 2025-02-18 15:35:52 -06:00
example_support.rs fix: clippy warnings with --all-features (#15035) 2025-02-07 12:30:25 +01:00
example_test.rs Implementing ByteStream interuption on infinite stream (#13552) 2025-01-11 13:28:08 -08:00
lib.rs Refactor/fix tests affecting the whole command set (#15073) 2025-02-11 11:36:36 +01:00
parse_const_test.rs Refactor/fix tests affecting the whole command set (#15073) 2025-02-11 11:36:36 +01:00