nushell/crates/nu-std/std
Bram Geron 86f12ffe61
Fix bug in std dirs drop; improve documentation (#9449)
# Description

When the directory stack contains only two directories, then std dirs
drop
used to misbehave and (essentially) drop the other directory, instead of
dropping the current directory.

This is fixed by always cd'ing for std dirs drop.

Before:

    /tmp〉enter ..
    /〉dexit
    /〉

After:

    /tmp〉enter ..
    /〉dexit
    /tmp〉


Additionally, I propose to explain the relevant environment variables a
bit
more thoroughly.


# User-Facing Changes

- Fix bug in dexit (std dirs drop) when two directories are remaining

# Tests + Formatting

Added a regression test. Made the existing test easier to understand.
2023-06-16 10:42:50 +02:00
..
assert.nu Logger constants refactored, format argument added, better formatting of failed (non) equality assertions (#9315) 2023-06-04 10:43:40 +02:00
dirs.nu Fix bug in std dirs drop; improve documentation (#9449) 2023-06-16 10:42:50 +02:00
dt.nu Add virtual path abstraction layer (#9245) 2023-05-23 23:48:50 +03:00
help.nu REFACTOR: build help pages instead of printing them (#9253) 2023-05-26 11:22:51 +02:00
iter.nu Add zip-into-record to std iter (#9395) 2023-06-10 20:15:30 +02:00
log.nu Logger constants refactored, format argument added, better formatting of failed (non) equality assertions (#9315) 2023-06-04 10:43:40 +02:00
mod.nu std: refactor test-runner to no longer require tests to be exported (#9355) 2023-06-10 20:16:17 +02:00
testing.nu std: refactor test-runner to no longer require tests to be exported (#9355) 2023-06-10 20:16:17 +02:00
xml.nu Add virtual path abstraction layer (#9245) 2023-05-23 23:48:50 +03:00