diff options
author | Devyn Cairns <devyn.cairns@gmail.com> | 2024-06-03 00:38:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 10:38:55 +0300 |
commit | be8c1dc0066cd1034a6b110a622f47b516bfe029 (patch) | |
tree | bfeabc2f5735b69ff302b44f298a74c181d76109 /CODE_OF_CONDUCT.md | |
parent | b50903cf58a067b78815be620372e8a3d5cbdcae (diff) |
Fix `run_external::expand_glob()` to return paths that are PWD-relative but reflect the original intent (#13028)0.94.2
# 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.
Diffstat (limited to 'CODE_OF_CONDUCT.md')
0 files changed, 0 insertions, 0 deletions