Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ommitted time on resume
- X-seq: zsh-workers 29651
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: ommitted time on resume
- Date: Sat, 6 Aug 2011 12:45:28 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=IhJ0ZLsznevlwJtFP3qqKTAVO7U9UN9sNmlGyKnEDGw=; b=IaMFrRuWOYfJ4gloTIOUd4fkxdjO+lvdmCVLZQHm2DYZ0ojR+ieQsLRfDeZHfEKz7+ 5dHMVY/vi/j3uKwogTuS/A1Jn4JJUrhKvyY4DeSQsvAZlwCa0tG9ehsuhT7odOiL7zcB HYabYHn/jsbPtU5VNyNkE3wfGTTaMb+NlwhFw=
- In-reply-to: <CAHSx_Ss6c1S9KRi8aco+CegZn63s_Da_UmCSTS8fckWRB7Jy=g@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAHSx_Sue-g4TN7BoMd-ko3VW51cSn0BWvr2rOt9iPX1kKAWXfg@mail.gmail.com> <110805201755.ZM32464@torch.brasslantern.com> <CAHSx_Ss6c1S9KRi8aco+CegZn63s_Da_UmCSTS8fckWRB7Jy=g@mail.gmail.com>
- Sender: 4wayned@xxxxxxxxx
Another potential fix would be to change the hiding choices of the jobs so that the "jobs" output would show the pieces of the pipeline, more like when a non-time-using pipeline is used. For example, if I suspend "sleep 5 | cat ~/foo/*(^/) | wc", jobs shows me the various pieces of the pipeline (as would continue):
[1] + suspended sleep 5 |
done cat ~/foo/*(^/) | wc
I created the attached simple patch to test this, but it doesn't really work right -- it doesn't hide the super job (which might be a good thing), and it prints superfluous "done" messages at the end of the run. I'm not going to fiddle with this anymore, since my prior patch seems like a reasonable fix, and the changing of the jobs output when suspending a newly-created super-job seems like a separate issue (but one that could also fix the time issue in a different way).
..wayne..
index 6320f6a..7170652 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -1549,8 +1549,8 @@ execpline(Estate state, wordcode slcode, int how, int last1)
* normal (non-super-) job. */
if (!(jn->stat & STAT_DONE)) {
jobtab[list_pipe_job].other = newjob;
- jobtab[list_pipe_job].stat |= STAT_SUPERJOB;
- jn->stat |= STAT_SUBJOB | STAT_NOPRINT;
+ jobtab[list_pipe_job].stat |= STAT_SUPERJOB | STAT_NOPRINT;
+ jn->stat |= STAT_SUBJOB;
jn->other = pid;
}
if ((list_pipe || last1) && hasprocs(list_pipe_job))
Messages sorted by:
Reverse Date,
Date,
Thread,
Author