nushell/crates/nu-command/src
Devyn Cairns 51aa66fef7
Fix #12391: mkdir uses process startup directory instead of current script directory (#12394)
# Description

This fixes #12391.

nushell/nushell@87c5f6e455 accidentally introduced a bug where the path
was not being properly
expanded according to the cwd. This makes both 'touch' and 'mkdir' use
globs just like the rest of
the commands to preserve tilde behavior while still expanding the paths
properly.

This doesn't actually expand the globs. Should it?

# User-Facing Changes

- Restore behavior of `mkdir`, `touch`
- Help text now says they can take globs, but they won't actually expand
them, maybe this should be changed

# Tests + Formatting

Regression tests added.


# After Submitting

This is severe enough and should be included in the point release.
2024-04-04 14:23:10 +02:00
..
bytes Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
charting Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
conversions Use nightly clippy to kill dead code/fix style (#12334) 2024-03-30 09:17:28 +08:00
database Make drop notification timing for plugin custom values more consistent (#12341) 2024-04-04 09:13:25 +02:00
date Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
debug Use safe nix API instead of libc (#12315) 2024-03-30 14:49:54 +01:00
env Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
experimental Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
filesystem Fix #12391: mkdir uses process startup directory instead of current script directory (#12394) 2024-04-04 14:23:10 +02:00
filters Use nightly clippy to kill dead code/fix style (#12334) 2024-03-30 09:17:28 +08:00
formats Avoid uses of Record internals again (#12312) 2024-03-28 11:36:12 +01:00
generators Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
hash Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
help ♻️ rework some help strings (#12306) 2024-03-27 08:41:02 -05:00
math Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
misc Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
network Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
path Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
platform Bump crate-ci/typos and fix typos (#12381) 2024-04-04 09:59:21 +02:00
random Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
removed Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
shells Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
stor Use nightly clippy to kill dead code/fix style (#12334) 2024-03-30 09:17:28 +08:00
strings detect columns: intruduce a --guess flag, remove --legacy (#12333) 2024-03-29 19:59:57 -05:00
system Use safe nix API instead of libc (#12315) 2024-03-30 14:49:54 +01:00
viewers Use nightly clippy to kill dead code/fix style (#12334) 2024-03-30 09:17:28 +08:00
default_context.rs Use nightly clippy to kill dead code/fix style (#12334) 2024-03-30 09:17:28 +08:00
example_test.rs Initial --params implementation (#12249) 2024-03-24 15:40:21 -05:00
lib.rs Initial --params implementation (#12249) 2024-03-24 15:40:21 -05:00
progress_bar.rs remove cp-old (#11622) 2024-01-24 07:38:15 +08:00
sort_utils.rs Rename Value::CustomValue to Value::Custom (#12309) 2024-03-27 22:10:56 +01:00