zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: BUG: zsh-3.1.5-pws-24: time is dead
Date: Thu, 1 Jul 1999 08:39:11 +0200 (MET DST)	[thread overview]
Message-ID: <199907010639.IAA27678@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: mason@primenet.com.au's message of 30 Jun 1999 18:09:00 GMT


mason@primenet.com.au wrote:

> Heyla,
> % zsh -f
> % time =echo foobar
> foobar
> % =time =echo foobar
> foobar
>         0.01 real         0.00 user         0.01 sys
> % which -a time
> time: shell reserved word
> /usr/bin/time
> %

It may well be that it was me who broke this.

This patch seems to work, but since I don't know why it worked before, 
I'm not really happy with it.

Bye
 Sven

diff -u os/jobs.c Src/jobs.c
--- os/jobs.c	Wed Jun 30 11:56:49 1999
+++ Src/jobs.c	Thu Jul  1 08:31:58 1999
@@ -494,9 +494,14 @@
     int conted = 0, lineleng = columns, skip = 0, doputnl = 0;
     FILE *fout = (synch == 2) ? stdout : shout;
 
-    if (jn->stat & STAT_NOPRINT)
+    if (jn->stat & STAT_NOPRINT) {
+	if ((jn->stat & (STAT_TIMED | STAT_DONE)) == (STAT_TIMED | STAT_DONE) &&
+	    should_report_time(jn)) {
+	    jn->stat &= ~STAT_TIMED;
+	    dumptime(jn);
+	}
 	return;
-
+    }
     if (lng < 0) {
 	conted = 1;
 	lng = 0;

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~1999-07-01  6:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-01  6:39 Sven Wischnowsky [this message]
1999-07-02  2:05 ` Geoff Wing
  -- strict thread matches above, loose matches on Subject: below --
1999-07-02  6:32 Sven Wischnowsky
1999-07-02  8:07 ` Geoff Wing
1999-06-30 18:09 Geoff Wing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199907010639.IAA27678@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).