From 3d7b8de64f98599856bda39bd9a00521dbccee16 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 16 Dec 2020 19:02:18 +0000 Subject: [PATCH] Shell: Don't run commands with failing redirections Fixes #3423. --- Shell/Shell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shell/Shell.cpp b/Shell/Shell.cpp index 354943ddde..605b27bcf3 100644 --- a/Shell/Shell.cpp +++ b/Shell/Shell.cpp @@ -606,7 +606,7 @@ RefPtr 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();