diff --git a/crates/util/src/shell_builder.rs b/crates/util/src/shell_builder.rs index 58857ab2f6..dd2497a29e 100644 --- a/crates/util/src/shell_builder.rs +++ b/crates/util/src/shell_builder.rs @@ -99,12 +99,10 @@ impl ShellBuilder { }); if self.redirect_stdin { match self.kind { - ShellKind::Fish => { - combined_command.insert_str(0, "begin; "); - combined_command.push_str("; end { + combined_command.insert_str(0, "exec { - combined_command.insert_str(0, "begin; "); - combined_command.push_str("; end { + combined_command.insert_str(0, "exec