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 <cole@zed.dev>
This commit is contained in:
Lukas WirthandCole Miller authored and GitHub committed 2025-09-30 17:55:46 +00:00
1 parent ace617037f
commit 67ebb1f795
1 file changed
+1 -1
+1 -1
View File
@@ -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 => {