Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Lost Job Control (Again :(
- X-seq: zsh-workers 2767
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: awick@xxxxxxxxxx (Andy Wick)
- Subject: Re: Lost Job Control (Again :(
- Date: Fri, 10 Jan 1997 12:47:40 +0100 (MET)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <199701100454.XAA02582@xxxxxxxxxxxxxxxxxxxxxxx> from Andy Wick at "Jan 9, 97 11:54:14 pm"
- Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary
- Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368
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