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();