nushell/crates/nu-command
Devyn Cairns be8c1dc006
Fix run_external::expand_glob() to return paths that are PWD-relative but reflect the original intent (#13028)
# Description

Fix #13021

This changes the `expand_glob()` function to use
`nu_engine::glob_from()` so that absolute paths are actually preserved,
rather than being made relative to the provided parent. This preserves
the intent of whoever wrote the original path/glob, and also makes it so
that tilde always produces absolute paths.

I also made `expand_glob()` handle Ctrl-C so that it can be interrupted.

cc @YizhePKU

# Tests + Formatting
No additional tests here... but that might be a good idea.
2024-06-03 10:38:55 +03:00
..
src Fix run_external::expand_glob() to return paths that are PWD-relative but reflect the original intent (#13028) 2024-06-03 10:38:55 +03:00
tests Fix touch --reference using PWD from the environment (#12976) 2024-05-26 20:24:00 +03:00
Cargo.toml Bump version to 0.94.2 (#13014) 2024-06-03 10:28:35 +03:00
LICENSE Fix rest of license year ranges (#8727) 2023-04-04 09:03:29 +12:00