nushell/crates/nu-std/tests
Firegem f33a26123c
Fix path add bug when given a record (#15379)
`path add`, when given a record, sets `$env.PATH` according to the value
of the key matching `$nu.os-info.name`. There already existed a check in
place to ensure the correct column existed, but it was never reached
because of an early error on `path expand`ing `null`. This has been
fixed, as well as the out-of-date reference to "darwin" instead of
"macos" in the example.

# User-Facing Changes

`path add` now simply ignores a record that doesn't include a key for the current OS

`path add` also will no longer add duplicate paths.
2025-03-22 08:42:20 -04:00
..
logger_tests Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
test_asserts.nu Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
test_dirs.nu feat(std/dirs): retain state in subshells or with exec-restarts (#15080) 2025-02-11 19:51:43 -05:00
test_dt.nu Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
test_formats.nu Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
test_help.nu Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
test_iter.nu Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
test_prelude.nu Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
test_setup_teardown.nu Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
test_std_formats.nu Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
test_std_postload.nu Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
test_std_preload.nu Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
test_std_util.nu Fix path add bug when given a record (#15379) 2025-03-22 08:42:20 -04:00
test_std-rfc_conversions.nu Update std-rfc tests for to use @test attributes (#15098) 2025-02-12 06:48:41 -05:00
test_std-rfc_kv.nu Update std-rfc tests for to use @test attributes (#15098) 2025-02-12 06:48:41 -05:00
test_std-rfc_path.nu Update std-rfc tests for to use @test attributes (#15098) 2025-02-12 06:48:41 -05:00
test_std-rfc_str.nu Update std-rfc tests for to use @test attributes (#15098) 2025-02-12 06:48:41 -05:00
test_std-rfc_tables.nu Update std-rfc tests for to use @test attributes (#15098) 2025-02-12 06:48:41 -05:00
test_util.nu Fix path add bug when given a record (#15379) 2025-03-22 08:42:20 -04:00
test_xml.nu Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00