diff --git a/crates/nu-command/src/system/run_external.rs b/crates/nu-command/src/system/run_external.rs index effe6dad07..d45cfa3e5a 100644 --- a/crates/nu-command/src/system/run_external.rs +++ b/crates/nu-command/src/system/run_external.rs @@ -607,7 +607,7 @@ fn escape_cmd_argument(arg: &Spanned) -> Result, ShellE // If `arg` contains space or special characters, quote the entire argument by double quotes. let mut new_str = OsString::new(); new_str.push("\""); - new_str.push(&arg); + new_str.push(arg); new_str.push("\""); Ok(Cow::Owned(new_str)) } else {