From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18539 invoked by alias); 6 Aug 2011 03:18:31 -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: 29648 Received: (qmail 13882 invoked from network); 6 Aug 2011 03:18:20 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <110805201755.ZM32464@torch.brasslantern.com> Date: Fri, 05 Aug 2011 20:17:55 -0700 In-reply-to: Comments: In reply to Wayne Davison "ommitted time on resume" (Aug 5, 4:21pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: ommitted time on resume MIME-version: 1.0 Content-type: text/plain; charset=us-ascii 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.