From 37bfaf4e7c4d5b828df995cfe9ef7cb495e0a6ac Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Tue, 26 Jan 2021 08:59:18 +0330 Subject: [PATCH] Shell: Do not bail on signaled if condition Fixes #5119 --- Userland/Shell/AST.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Userland/Shell/AST.cpp b/Userland/Shell/AST.cpp index c6c8b982a0..d4ff8ecd9f 100644 --- a/Userland/Shell/AST.cpp +++ b/Userland/Shell/AST.cpp @@ -1619,9 +1619,6 @@ RefPtr IfCond::run(RefPtr shell) auto cond_job = cond_job_value->job(); shell->block_on_job(cond_job); - - if (cond_job->signaled()) - return create({}); // Exit early. } if (shell->last_return_code == 0) { if (m_true_branch)