mirror of
https://github.com/nushell/nushell
synced 2025-01-19 08:34:30 +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` |
||
---|---|---|
.. | ||
cd.rs | ||
du.rs | ||
glob.rs | ||
ls.rs | ||
mktemp.rs | ||
mod.rs | ||
open.rs | ||
rm.rs | ||
save.rs | ||
start.rs | ||
touch.rs | ||
ucp.rs | ||
umkdir.rs | ||
umv.rs | ||
util.rs | ||
watch.rs |