From e0d063a2ade821baf570eb300d4be93692b494f8 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 3 Aug 2019 19:48:18 +0100 Subject: 44635: Don't apply STAT_NOPRINT to backgrounded jobs --- ChangeLog | 5 +++++ Src/exec.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a39ee7665..467b0683e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-08-03 Peter Stephenson + + * 44635: Src/exec.c: don't apply STAT_NOPRINT to backgrounded + jobs. + 2019-08-03 Peter Stephenson * 44637: Shlomi Fish: Src/makepro.awk: "=" doesn't need quoting diff --git a/Src/exec.c b/Src/exec.c index 2acb2c0bc..e81053d67 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -1690,7 +1690,8 @@ execpline(Estate state, wordcode slcode, int how, int last1) lastwj = thisjob = newjob; - if (list_pipe || (pline_level && !(how & Z_TIMED))) + if (list_pipe || (pline_level && !(how & Z_TIMED) && + !(jn->stat & STAT_NOSTTY))) jn->stat |= STAT_NOPRINT; if (nowait) { -- cgit 1.4.1