From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27593 invoked by alias); 20 Apr 2012 11:48:38 -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: 30426 Received: (qmail 12135 invoked from network); 20 Apr 2012 11:48:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.3 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-workers@zsh.org From: Christian Neukirchen Subject: Re: manpage mentions old TIMEFMT Date: Fri, 20 Apr 2012 13:48:13 +0200 Sender: chris@juno Message-ID: <87aa26y682.fsf@gmail.com> References: <87ty0nz7dn.fsf@gmail.com> <87pqbbz62r.fsf@gmail.com> <20120413233544.40d9fb2a@pws-pc.ntlworld.com> <87lilyz8mn.fsf@gmail.com> <20120414215528.2cb405fa@pws-pc.ntlworld.com> <87d37aypvy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: a088b4a1ce50.dfn.mwn.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Christian Neukirchen writes: > Peter Stephenson writes: > >> On Sat, 14 Apr 2012 16:32:48 +0200 >> Christian Neukirchen wrote: >>> >> Finally, %X and %D are rubbish on Linux (but GNU time(1) always shows >>> >> 0 for them). >>> >>> I'd prefer if they were 0 instead of -9223372036854775808... >> >> I don't know where this is coming from, but the shell does initialise >> the structure when it's created, so something in the shell is actually >> setting a value --- unless it's the effect of dividing by a zero total >> time. > > That was indeed the case: > > juno ~% TIMEFMT="%X %D %E" > juno ~% time sleep 0 > -9223372036854775808 -9223372036854775808 0.00s > juno ~% time sleep 1 > 0 0 1.01s There seem to be other case of division by zero, too: make -v 0.00s user 18446744073.71s system -2147483648% cpu 4M memory 0.004 total -- Christian Neukirchen http://chneukirchen.org