From fe32b566e1c4da49856eb1cbb95fdbc3b8760add Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 30 Sep 1999 14:55:20 +0000 Subject: zsh-workers/8109 --- Src/builtin.c | 3 ++- Src/options.c | 1 + Src/zsh.h | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/builtin.c b/Src/builtin.c index ae608cc39..c0b716d45 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -3152,7 +3152,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 (unset(SHJOBCONTROL)) + 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 25084a771..4ce858f7b 100644 --- a/Src/options.c +++ b/Src/options.c @@ -186,6 +186,7 @@ static struct optname optns[] = { {NULL, "shinstdin", OPT_SPECIAL, SHINSTDIN}, {NULL, "shoptionletters", OPT_EMULATE|OPT_BOURNE, SHOPTIONLETTERS}, {NULL, "shortloops", OPT_ALL, SHORTLOOPS}, +{NULL, "shjobcontrol", OPT_EMULATE|OPT_NONZSH, SHJOBCONTROL}, {NULL, "shwordsplit", OPT_EMULATE|OPT_BOURNE, SHWORDSPLIT}, {NULL, "singlecommand", OPT_SPECIAL, SINGLECOMMAND}, {NULL, "singlelinezle", OPT_KSH, SINGLELINEZLE}, diff --git a/Src/zsh.h b/Src/zsh.h index 0d494cd84..b8613135b 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1359,6 +1359,7 @@ enum { SHINSTDIN, SHOPTIONLETTERS, SHORTLOOPS, + SHJOBCONTROL, SHWORDSPLIT, SINGLECOMMAND, SINGLELINEZLE, -- cgit 1.4.1