Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

terminal: Fix double quoting of commands on Windows cmd.exe (#47534)

Xin Zhao7af276a984a4
diff --git a/crates/project/src/terminals.rs b/crates/project/src/terminals.rs
index 74e09bc964f..5ab3c4c3621 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);
(