4afb91
From 6af0b07cc7950159129156cb85ef3f72fdd828cc Mon Sep 17 00:00:00 2001
4afb91
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
4afb91
Date: Sat, 3 Aug 2019 19:48:18 +0100
4afb91
Subject: [PATCH] 44635: Don't apply STAT_NOPRINT to backgrounded jobs
4afb91
4afb91
Upstream-commit: e0d063a2ade821baf570eb300d4be93692b494f8
4afb91
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
4afb91
---
4afb91
 Src/exec.c | 3 ++-
4afb91
 1 file changed, 2 insertions(+), 1 deletion(-)
4afb91
4afb91
diff --git a/Src/exec.c b/Src/exec.c
4afb91
index 8045db2..da089d6 100644
4afb91
--- a/Src/exec.c
4afb91
+++ b/Src/exec.c
4afb91
@@ -1666,7 +1666,8 @@ execpline(Estate state, wordcode slcode, int how, int last1)
4afb91
 
4afb91
 	    lastwj = thisjob = newjob;
4afb91
 
4afb91
-	    if (list_pipe || (pline_level && !(how & Z_TIMED)))
4afb91
+	    if (list_pipe || (pline_level && !(how & Z_TIMED) &&
4afb91
+			      !(jn->stat & STAT_NOSTTY)))
4afb91
 		jn->stat |= STAT_NOPRINT;
4afb91
 
4afb91
 	    if (nowait) {
4afb91
-- 
4afb91
2.34.1
4afb91