History

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

Lukas Wirth committed 1 year ago

Commit 67ebb1f1 parent ace61701 file · +1 −1Browse files

Unified · Split

crates/task/src/shell_builder.rs+1−1
@@ -288,7 +288,7 @@ impl ShellBuilder { · 287 unmodified lines
288288 combined_command.push_str(") </dev/null");
289289 }
290290 ShellKind::PowerShell => {
291− combined_command.insert_str(0, "$null | {");
291+ combined_command.insert_str(0, "`$null | & {");
292292 combined_command.push_str("}");
293293 }
294294 ShellKind::Cmd => {