Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
task: Fix `ShellBuilder::redirect_stdin_to_dev_null` constructing invalid commands on windows (#39227)
Lukas Wirth67ebb1f7953d
diff --git a/crates/task/src/shell_builder.rs b/crates/task/src/shell_builder.rsindex 6e0806ff05a..074f73a421a 100644--- a/crates/task/src/shell_builder.rs+++ b/crates/task/src/shell_builder.rs@@ -288,7 +288,7 @@ impl ShellBuilder {combined_command.push_str(") </dev/null");}ShellKind::PowerShell => {- combined_command.insert_str(0, "$null | {");+ combined_command.insert_str(0, "`$null | & {");combined_command.push_str("}");}ShellKind::Cmd => {