Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Lost Job Control (Again :(



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



Messages sorted by: Reverse Date, Date, Thread, Author