From: Hrvoje Niksic <hniksic@srce.hr>
To: zsh-workers@math.gatech.edu
Subject: "You have running jobs" warning
Date: 01 Jun 1996 19:52:37 +0200 [thread overview]
Message-ID: <kigg28fza1m.fsf@jagor.srce.hr> (raw)
When I set NO_HUP, I would like the "you have running jobs" warning to
disappear when leaving zsh, since the option should make it look like
other shells in that respect (e.g. bash prints no warnings about
background running jobs).
Thus, if nohup is unset, the warning should be printed and the shell
should require pressing C-d twice to exit, HUP-ing the job before
exiting.
However, if nohup is set, there should be no warning about running
background jobs, and only one C-d should be sufficient to exit. This
little patch does this. Could you please include it to the
distribution, since the modified behaviour strikes me as much more
logical.
*** jobs.c.orig Sat Jun 1 18:31:07 1996
--- jobs.c Sat Jun 1 19:42:54 1996
***************
*** 846,855 ****
#else
zerr("you have stopped jobs.", NULL, 0);
#endif
! } else
zerr("you have running jobs.", NULL, 0);
! stopmsg = 1;
}
}
--- 846,857 ----
#else
zerr("you have stopped jobs.", NULL, 0);
#endif
+ stopmsg = 1;
! } else if (!isset(NOHUP)) {
zerr("you have running jobs.", NULL, 0);
! stopmsg = 1;
! }
}
}
--
hniksic@srce.hr | Student of electrical engineering
hniksic@fly.cc.fer.hr | University of Zagreb, Croatia
------------------------------------------------------------------
Signature strajka!
next reply other threads:[~1996-06-01 18:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-01 17:52 Hrvoje Niksic [this message]
1996-06-03 11:37 ` Zefram
1996-06-03 13:18 ` Hrvoje Niksic
1996-06-03 13:37 ` Zefram
1996-06-03 13:45 ` Hrvoje Niksic
1996-06-03 16:01 ` Zoltan Hidvegi
1996-06-03 16:10 ` Hrvoje Niksic
1996-06-03 10:31 Duncan Sinclair
1996-06-03 13:19 ` Hrvoje Niksic
1996-06-03 13:41 ` Zoltan Hidvegi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=kigg28fza1m.fsf@jagor.srce.hr \
--to=hniksic@srce.hr \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).