mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
709b2479d9
# Description Fixes #12758. #12662 introduced a bug where calling `cd` with a path with a trailing slash would cause `PWD` to be set to a path including a trailing slash, which is not allowed. This adds a helper to `nu_path` to remove this, and uses it in the `cd` command to clean it up before setting `PWD`. # Tests + Formatting I added some tests to make sure we don't regress on this in the future. - 🟢 `toolkit fmt` - 🟢 `toolkit clippy` - 🟢 `toolkit test` - 🟢 `toolkit test stdlib` |
||
---|---|---|
.. | ||
assert_path_eq.rs | ||
components.rs | ||
dots.rs | ||
expansions.rs | ||
helpers.rs | ||
lib.rs | ||
tilde.rs | ||
trailing_slash.rs |