From 67ebb1f7953d2bb13cace99636a06aed00a042a9 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Tue, 30 Sep 2025 19:55:46 +0200 Subject: [PATCH] task: Fix `ShellBuilder::redirect_stdin_to_dev_null` constructing invalid commands on windows (#39227) Release Notes: - Fixed agents not being able to use the terminal tool with powershell Co-authored-by: Cole Miller --- crates/task/src/shell_builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/task/src/shell_builder.rs b/crates/task/src/shell_builder.rs index 6e0806ff05aad2a588982d8477ebdf7a34f17923..074f73a421a198c6fba39d0232550215bfd3eec4 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(") { - combined_command.insert_str(0, "$null | {"); + combined_command.insert_str(0, "`$null | & {"); combined_command.push_str("}"); } ShellKind::Cmd => {