zsh-workers
 help / color / mirror / code / Atom feed
* "You have running jobs" warning
@ 1996-06-01 17:52 Hrvoje Niksic
  1996-06-03 11:37 ` Zefram
  0 siblings, 1 reply; 10+ messages in thread
From: Hrvoje Niksic @ 1996-06-01 17:52 UTC (permalink / raw)
  To: zsh-workers

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!



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: "You have running jobs" warning
@ 1996-06-03 10:31 Duncan Sinclair
  1996-06-03 13:19 ` Hrvoje Niksic
  0 siblings, 1 reply; 10+ messages in thread
From: Duncan Sinclair @ 1996-06-03 10:31 UTC (permalink / raw)
  To: zsh-workers; +Cc: Hrvoje Niksic


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

<patch omitted>

I don't see this as logical at all.  I have "nohup" set but always
appreciate the warning that zsh gives when I'm about to abandon a
job.

Perhaps another option to control this is what you require.


Duncan.



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

end of thread, other threads:[~1996-06-03 16:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-01 17:52 "You have running jobs" warning Hrvoje Niksic
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

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