diff --git a/crates/nu-command/src/system/run_external.rs b/crates/nu-command/src/system/run_external.rs index 11d63a7b87..e24a207b45 100644 --- a/crates/nu-command/src/system/run_external.rs +++ b/crates/nu-command/src/system/run_external.rs @@ -469,6 +469,12 @@ impl ExternalCommand { /// Spawn a cmd command with `cmd /c args...` pub fn spawn_cmd_command(&self) -> std::process::Command { let mut process = std::process::Command::new("cmd"); + + // Disable AutoRun + // TODO: There should be a config option to enable/disable this + // Alternatively (even better) a config option to specify all the arguments to pass to cmd + process.arg("/D"); + process.arg("/c"); process.arg(&self.name.item); for arg in &self.args {