Shell: Don't run commands with failing redirections

Fixes #3423.
This commit is contained in:
Linus Groh 2020-12-16 19:02:18 +00:00 committed by Andreas Kling
parent 5eacf62ba3
commit 3d7b8de64f
Notes: sideshowbarker 2024-07-19 00:47:21 +09:00

View File

@ -606,7 +606,7 @@ RefPtr<Job> Shell::run_command(const AST::Command& command)
if (rewiring_result.is_error()) {
if (!rewiring_result.error().is_empty())
fprintf(stderr, "error: %s\n", rewiring_result.error().characters());
return IterationDecision::Continue;
return IterationDecision::Break;
}
auto& rewiring = rewiring_result.value();