nushell/crates/nu-command/src/system
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
..
sys Fix sys panic (#12846) 2024-05-15 15:40:04 +08:00
complete.rs Replace ExternalStream with new ByteStream type (#12774) 2024-05-16 07:11:18 -07:00
exec.rs Rewrite run_external.rs (#12921) 2024-05-23 02:05:27 +00:00
mod.rs Rewrite run_external.rs (#12921) 2024-05-23 02:05:27 +00:00
nu_check.rs Replace ExternalStream with new ByteStream type (#12774) 2024-05-16 07:11:18 -07:00
ps.rs Add support for the ps command on FreeBSD, NetBSD, and OpenBSD (#12892) 2024-05-22 08:13:45 -07:00
registry_query.rs ListStream touchup (#12524) 2024-05-05 16:00:59 +00:00
run_external.rs 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
uname.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
which_.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00