zsh-workers
 help / color / mirror / code / Atom feed
* Lost Job Control (Again :(
@ 1997-01-10  4:54 Andy Wick
  1997-01-10 11:47 ` Zoltan Hidvegi
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Wick @ 1997-01-10  4:54 UTC (permalink / raw)
  To: zsh-workers

I guess other people must actually use the jobs command instead of blindly 
using %.  Call me % happy or something! :)

xclock &
disown %
%

zsh: can't set tty pgrp: invalid argument

Occurs on at least 3.0.2 and 3.0.3-test3 on Solaris 2.5.1 box.  Sorry
if I missed the patch.

Thanks,
Andy
 
-- 
awick@vt.edu                                    Andy Wick
awick@purple.org                              Virginia Tech


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

* Re: Lost Job Control (Again :(
  1997-01-10  4:54 Lost Job Control (Again :( Andy Wick
@ 1997-01-10 11:47 ` Zoltan Hidvegi
  0 siblings, 0 replies; 2+ messages in thread
From: Zoltan Hidvegi @ 1997-01-10 11:47 UTC (permalink / raw)
  To: Andy Wick; +Cc: zsh-workers

Andy Wick wrote:
> I guess other people must actually use the jobs command instead of blindly 
> using %.  Call me % happy or something! :)
> 
> xclock &
> disown %
> %
> 
> zsh: can't set tty pgrp: invalid argument

This should fix that.

Zoltan


*** Src/builtin.c	1997/01/08 12:30:48	3.1.1.12
--- Src/builtin.c	1997/01/10 11:42:56
***************
*** 410,416 ****
  	scanjobs();
  
      /* Make sure we have a suitable previous job set. */
!     if (curjob != -1 && !(jobtab[curjob].stat & STAT_INUSE)) {
  	curjob = prevjob;
  	setprevjob();
  	if (curjob != -1 && !((jobtab[curjob].stat & STAT_INUSE) &&
--- 410,417 ----
  	scanjobs();
  
      /* Make sure we have a suitable previous job set. */
!     if (curjob == thisjob ||
! 	(curjob != -1 && !(jobtab[curjob].stat & STAT_INUSE))) {
  	curjob = prevjob;
  	setprevjob();
  	if (curjob != -1 && !((jobtab[curjob].stat & STAT_INUSE) &&


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

end of thread, other threads:[~1997-01-10 11:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-10  4:54 Lost Job Control (Again :( Andy Wick
1997-01-10 11:47 ` 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).