zsh-users
 help / color / mirror / code / Atom feed
* Exiting zsh with jobs in background
@ 1997-03-24 16:48 Steve Talley
  1997-03-25 23:21 ` Hrvoje Niksic
  1997-03-26 17:42 ` Zefram
  0 siblings, 2 replies; 9+ messages in thread
From: Steve Talley @ 1997-03-24 16:48 UTC (permalink / raw)
  To: zsh-users; +Cc: stephen.talley

Is there any way to turn off the "zsh: you have running jobs." message
that appears when you try to exit zsh with jobs in the background?  I
have the "nohup" option set so that zsh won't kill those jobs, but I'd
like to be able to exit the shell without being nagged about running
jobs.

Also...

When zsh has multiple completion possibilities, it gives the the
error:

zsh: do you wish to see all <n> possibilities?

What is the minimum value of n such that this message will appear?  Can
I change this value or disable the message entirely?

Steve

~~
stephen.talley@Central.Sun.COM


^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Exiting zsh with jobs in background
@ 1997-03-26  6:10 Steve Talley
  0 siblings, 0 replies; 9+ messages in thread
From: Steve Talley @ 1997-03-26  6:10 UTC (permalink / raw)
  To: zsh-users; +Cc: stephen.talley

> st> Is there any way to turn off the "zsh: you have running jobs."
> st> message that appears when you try to exit zsh with jobs in the
> st> background?  I have the "nohup" option set so that zsh won't kill
> st> those jobs, but I'd like to be able to exit the shell without
> st> being nagged about running jobs.
> 
> Hrv> There is no way to turn it off.  I once posted a patch that made
> Hrv> zsh behave like bash in that respect (i.e. not to warn about
> Hrv> running job when nohup is set), but it was rejected.
> 
> On the small number of occasions I actually i) log out, and ii) have
> jobs running, and hence get the warning, I just disown them.

I don't need to disown them at this point -- since I have nohup set I just hit
Ctrl-D again and the shell exits.  The problem is that I want to avoid the
message if I can.  Having nohup set should allow me to do this...

> 
> If I was really keen, maybe I'd have done something in .zlogout to
> disown all my running jobs.
> 

By the time .zlogout gets sourced it is too late to disown the jobs.  You could
put a function in precmd that disowns jobs immediately, but then you lose job
control.  Clearly a "nowarn" option is needed for zsh.

Steve

~~
stephen.talley@Central.Sun.COM


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1997-03-26 17:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-03-24 16:48 Exiting zsh with jobs in background Steve Talley
1997-03-25 23:21 ` Hrvoje Niksic
1997-03-26  3:36   ` Andrew J Cosgriff
1997-03-26  3:44     ` Hrvoje Niksic
1997-03-26  4:01       ` Aaron Schrab
1997-03-26  4:07         ` Hrvoje Niksic
1997-03-26 10:20     ` Juergen Christoffel
1997-03-26 17:42 ` Zefram
1997-03-26  6:10 Steve Talley

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).