diff options
author | Peter Stephenson <pws@zsh.org> | 2017-09-13 10:49:06 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2017-09-13 10:49:06 +0100 |
commit | da4146bdffb54423ad4d6db893b8ed25663169dc (patch) | |
tree | 3f7ce94c14f08d33abf4ee342ccd8293ac78ae9c | |
parent | 91484e0d420e9ffcd9a0b0d6b893c213d16ffebd (diff) | |
download | zsh-da4146bdffb54423ad4d6db893b8ed25663169dc.tar.gz zsh-da4146bdffb54423ad4d6db893b8ed25663169dc.tar.xz zsh-da4146bdffb54423ad4d6db893b8ed25663169dc.zip |
41688: builtin wait for all jobs should ignore STAT_NOPRINT
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Src/jobs.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 470ede544..3d0982b24 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2017-09-13 Peter Stephenson <p.stephenson@samsung.com> + * 41688: Src/jobs.c: "wait" for all active jobs should ignore + those marked STAT_NOPRINT. + * 41679: Doc/Zsh/builtins.yo: slight clarifcation on exec of builtins. diff --git a/Src/jobs.c b/Src/jobs.c index 66dfb5a7e..226e7cff3 100644 --- a/Src/jobs.c +++ b/Src/jobs.c @@ -2217,7 +2217,8 @@ bin_fg(char *name, char **argv, Options ops, int func) return 0; } else { /* Must be BIN_WAIT, so wait for all jobs */ for (job = 0; job <= maxjob; job++) - if (job != thisjob && jobtab[job].stat) + if (job != thisjob && jobtab[job].stat && + !(jobtab[job].stat & STAT_NOPRINT)) retval = zwaitjob(job, 1); unqueue_signals(); return retval; |