From 3c0bccb9003431078a13b49a020ff6b93ee556ea Mon Sep 17 00:00:00 2001 From: Fernando Herrera Date: Wed, 22 Jun 2022 22:00:30 -0500 Subject: [PATCH] Exclude ./... from expansion (#5839) * exclude ./... from expansion * use all instead of any * no path expansion for external arguments * clippy error * expand only tilde --- crates/nu-command/src/system/run_external.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/nu-command/src/system/run_external.rs b/crates/nu-command/src/system/run_external.rs index b4a35ffa11..b24b089137 100644 --- a/crates/nu-command/src/system/run_external.rs +++ b/crates/nu-command/src/system/run_external.rs @@ -414,7 +414,8 @@ impl ExternalCommand { item: trim_enclosing_quotes(&arg.item), span: arg.span, }; - arg.item = nu_path::expand_to_real_path(arg.item) + + arg.item = nu_path::expand_tilde(arg.item) .to_string_lossy() .to_string();