From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10036 invoked by alias); 6 Aug 2011 19:45:36 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29651 Received: (qmail 3542 invoked from network); 6 Aug 2011 19:45:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.218.43 as permitted sender) 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= MIME-Version: 1.0 Sender: 4wayned@gmail.com In-Reply-To: References: <110805201755.ZM32464@torch.brasslantern.com> Date: Sat, 6 Aug 2011 12:45:28 -0700 X-Google-Sender-Auth: 4cMGq1bwbIAd1_QbtBd7Q3vs-dE Message-ID: Subject: Re: ommitted time on resume From: Wayne Davison To: zsh-workers@zsh.org Content-Type: multipart/mixed; boundary=20cf3005143cc0d65604a9db74ae --20cf3005143cc0d65604a9db74ae Content-Type: multipart/alternative; boundary=20cf3005143cc0d65204a9db74ac --20cf3005143cc0d65204a9db74ac Content-Type: text/plain; charset=UTF-8 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.. --20cf3005143cc0d65204a9db74ac Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Another potential fix would be to change the hiding choices of the job= s so that the "jobs" output would show the pieces of the pipeline= , more like when a non-time-using pipeline is used. =C2=A0For example, if I= suspend "sleep 5 | cat ~/foo/*(^/) | wc", jobs shows me the vari= ous pieces of the pipeline (as would continue):

[1] =C2=A0+ suspended =C2=A0sleep 5 |=C2=A0
<= div>=C2=A0 =C2=A0 =C2=A0 =C2=A0done =C2=A0 =C2=A0 =C2=A0 cat ~/foo/*(^/) | = wc

I created the attached simple patch to te= st this, but it doesn't really work right -- it doesn't hide the su= per job (which might be a good thing), and it prints superfluous "done= " messages at the end of the run. =C2=A0I'm not going to fiddle wi= th 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 dif= ferent way).

..wayne..
--20cf3005143cc0d65204a9db74ac-- --20cf3005143cc0d65604a9db74ae Content-Type: text/x-patch; charset=US-ASCII; name="time-suspend2.patch" Content-Disposition: attachment; filename="time-suspend2.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gr0zrtp91 aW5kZXggNjMyMGY2YS4uNzE3MDY1MiAxMDA2NDQKLS0tIGEvU3JjL2V4ZWMuYworKysgYi9TcmMv ZXhlYy5jCkBAIC0xNTQ5LDggKzE1NDksOCBAQCBleGVjcGxpbmUoRXN0YXRlIHN0YXRlLCB3b3Jk Y29kZSBzbGNvZGUsIGludCBob3csIGludCBsYXN0MSkKIAkJCSAqIG5vcm1hbCAobm9uLXN1cGVy LSkgam9iLiAqLwogCQkJaWYgKCEoam4tPnN0YXQgJiBTVEFUX0RPTkUpKSB7CiAJCQkgICAgam9i dGFiW2xpc3RfcGlwZV9qb2JdLm90aGVyID0gbmV3am9iOwotCQkJICAgIGpvYnRhYltsaXN0X3Bp cGVfam9iXS5zdGF0IHw9IFNUQVRfU1VQRVJKT0I7Ci0JCQkgICAgam4tPnN0YXQgfD0gU1RBVF9T VUJKT0IgfCBTVEFUX05PUFJJTlQ7CisJCQkgICAgam9idGFiW2xpc3RfcGlwZV9qb2JdLnN0YXQg fD0gU1RBVF9TVVBFUkpPQiB8IFNUQVRfTk9QUklOVDsKKwkJCSAgICBqbi0+c3RhdCB8PSBTVEFU X1NVQkpPQjsKIAkJCSAgICBqbi0+b3RoZXIgPSBwaWQ7CiAJCQl9CiAJCQlpZiAoKGxpc3RfcGlw ZSB8fCBsYXN0MSkgJiYgaGFzcHJvY3MobGlzdF9waXBlX2pvYikpCg== --20cf3005143cc0d65604a9db74ae--