zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: ommitted time on resume
Date: Fri, 05 Aug 2011 20:17:55 -0700	[thread overview]
Message-ID: <110805201755.ZM32464@torch.brasslantern.com> (raw)
In-Reply-To: <CAHSx_Sue-g4TN7BoMd-ko3VW51cSn0BWvr2rOt9iPX1kKAWXfg@mail.gmail.com>

On Aug 5,  4:21pm, Wayne Davison wrote:
}
} If I have a job running under "time", e.g. "time sleep 3" and the
} program gets suspended (via Ctrl-Z), the resumed program (via %) does
} not output its time. I tested the official ubuntu 4.3.11 version and
} the latest dev version.

Hm.  I wouldn't have expected it to print the time after the job was
foregrounded again.  Cf. bash:

bash-3.2$ time sleep 4
^Z
[1]+  Stopped                 sleep 4

real    0m0.672s
user    0m0.000s
sys     0m0.001s
bash-3.2$ fg
sleep 4
bash-3.2$ 

In order for the builtin time to behave like e.g. /usr/bin/time does,
it would have to run *itself* in an external process rather than run
the subcommand in an external process.

I'm undecided on whether zsh's behavior on TSTP (skip reporting the
time entirely) is preferable.  The only ksh to which I have access
behaves the same as bash.


  reply	other threads:[~2011-08-06  3:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-05 23:21 Wayne Davison
2011-08-06  3:17 ` Bart Schaefer [this message]
2011-08-06 19:20   ` Wayne Davison
2011-08-06 19:45     ` Wayne Davison

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=110805201755.ZM32464@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).