From 11ff9c294541b59688a8d3465459e5cc452c83e6 Mon Sep 17 00:00:00 2001 From: lingyaochu Date: Sat, 24 Jan 2026 15:58:55 +0800 Subject: [PATCH] Fix the quote command for cmd shell --- crates/project/src/terminals.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/crates/project/src/terminals.rs b/crates/project/src/terminals.rs index 7927a8ab2c3bcd..2208a1ed0583f9 100644 --- a/crates/project/src/terminals.rs +++ b/crates/project/src/terminals.rs @@ -199,14 +199,7 @@ impl Project { activation_script.join(&format!("{separator} ")); let to_run = format_to_run(); - let mut arg = - format!("{activation_script}{separator} {to_run}"); - if shell_kind == ShellKind::Cmd { - // We need to put the entire command in quotes since otherwise CMD tries to execute them - // as separate commands rather than chaining one after another. - arg = format!("\"{arg}\""); - } - + let arg = format!("{activation_script}{separator} {to_run}"); let args = shell_kind.args_for_shell(false, arg); (