nushell/crates/nu-std/std
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
..
assert Replace "function" with "command" in several user-facing doc (#15129) 2025-02-17 14:10:38 -05:00
bench allow bench to handle larger numbers (#15162) 2025-02-25 15:02:42 +01:00
config Rename user-facing 'date' to 'datetime' (#15264) 2025-03-21 13:36:21 -04:00
dirs feat(std/dirs): retain state in subshells or with exec-restarts (#15080) 2025-02-11 19:51:43 -05:00
dt Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
formats Replace "function" with "command" in several user-facing doc (#15129) 2025-02-17 14:10:38 -05:00
help refactor: tree-sitter-nu friendly alternative expressions (#15301) 2025-03-12 08:48:19 -05:00
input Fix usages of fmt to format number (#15041) 2025-02-07 23:50:33 +01:00
iter Replace "function" with "command" in several user-facing doc (#15129) 2025-02-17 14:10:38 -05:00
log Replace "function" with "command" in several user-facing doc (#15129) 2025-02-17 14:10:38 -05:00
math Virtual std module subdirectories (#14040) 2024-10-10 06:56:37 -05:00
prelude Add category to pwd and banner commands (#15330) 2025-03-17 20:22:01 +08:00
testing Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
util Fix path add bug when given a record (#15379) 2025-03-22 08:42:20 -04:00
xml Replace "function" with "command" in several user-facing doc (#15129) 2025-02-17 14:10:38 -05:00
mod.nu Replace "function" with "command" in several user-facing doc (#15129) 2025-02-17 14:10:38 -05:00