diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/builtin.c | 3 | ||||
-rw-r--r-- | Src/options.c | 1 | ||||
-rw-r--r-- | Src/zsh.h | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index a7c03acef..acefcd111 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -3153,7 +3153,8 @@ zexit(int val, int from_signal) HEAPALLOC { if (isset(MONITOR) && !stopmsg && !from_signal) { scanjobs(); /* check if jobs need printing */ - checkjobs(); /* check if any jobs are running/stopped */ + if (isset(CHECKJOBS)) + checkjobs(); /* check if any jobs are running/stopped */ if (stopmsg) { stopmsg = 2; LASTALLOC_RETURN; diff --git a/Src/options.c b/Src/options.c index 878ab2247..2fd2ae373 100644 --- a/Src/options.c +++ b/Src/options.c @@ -93,6 +93,7 @@ static struct optname optns[] = { {NULL, "cdablevars", OPT_EMULATE, CDABLEVARS}, {NULL, "chasedots", OPT_EMULATE, CHASEDOTS}, {NULL, "chaselinks", OPT_EMULATE, CHASELINKS}, +{NULL, "checkjobs", OPT_EMULATE|OPT_ZSH, CHECKJOBS}, {NULL, "clobber", OPT_EMULATE|OPT_ALL, CLOBBER}, {NULL, "completealiases", 0, COMPLETEALIASES}, {NULL, "completeinword", 0, COMPLETEINWORD}, diff --git a/Src/zsh.h b/Src/zsh.h index 9a5699160..c34b2bd53 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1267,6 +1267,7 @@ enum { CDABLEVARS, CHASEDOTS, CHASELINKS, + CHECKJOBS, CLOBBER, COMPLETEALIASES, COMPLETEINWORD, |