nushell/tests/overlays
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
..
samples remove let-env, focus on mutating $env (#9574) 2023-07-01 07:57:51 +12:00
mod.rs overlay use: keep PWD after activating the overlay thought file. (#15566) 2025-04-21 20:09:08 +08:00