diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2017-12-22 20:00:54 +0000 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2017-12-22 20:21:23 +0000 |
commit | 5f6a52c06ca956cf61eacd7f45f270899337d45e (patch) | |
tree | b8743b8d42059b329ab6d65fb4019dba45566318 /Src/builtin.c | |
parent | 349c95765a030cf614c3c2a9fdc45941d3b115fc (diff) | |
download | zsh-5f6a52c06ca956cf61eacd7f45f270899337d45e.tar.gz zsh-5f6a52c06ca956cf61eacd7f45f270899337d45e.tar.xz zsh-5f6a52c06ca956cf61eacd7f45f270899337d45e.zip |
42156: new CHECK_RUNNING_JOBS option demanded by bash groupies
Also new job options. Also suppress debug error if rows or columns are reported as zero as this is normal without a physical terminal.
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index f002b9912..0211f2721 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -5594,7 +5594,8 @@ checkjobs(void) for (i = 1; i <= maxjob; i++) if (i != thisjob && (jobtab[i].stat & STAT_LOCKED) && - !(jobtab[i].stat & STAT_NOPRINT)) + !(jobtab[i].stat & STAT_NOPRINT) && + (isset(CHECKRUNNINGJOBS) || jobtab[i].stat & STAT_STOPPED)) break; if (i <= maxjob) { if (jobtab[i].stat & STAT_STOPPED) { |