From G.Czaplinski@prioris.mini.pw.edu.pl  Fri Aug  8 23:48:24 2003
Return-Path: <G.Czaplinski@prioris.mini.pw.edu.pl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 293C837B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  8 Aug 2003 23:48:24 -0700 (PDT)
Received: from prioris.mini.pw.edu.pl (prioris.mini.pw.edu.pl [194.29.178.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7B8D743FD7
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  8 Aug 2003 23:48:23 -0700 (PDT)
	(envelope-from G.Czaplinski@prioris.mini.pw.edu.pl)
Received: from localhost (localhost.mini.pw.edu.pl [127.0.0.1])
	by prioris.mini.pw.edu.pl (Postfix) with ESMTP id 8A07D24396
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  9 Aug 2003 08:48:21 +0200 (CEST)
Received: by prioris.mini.pw.edu.pl (Postfix, from userid 1368)
	id 56718243C7; Sat,  9 Aug 2003 08:48:16 +0200 (CEST)
Message-Id: <20030809064816.56718243C7@prioris.mini.pw.edu.pl>
Date: Sat,  9 Aug 2003 08:48:16 +0200 (CEST)
From: Grzegorz Czaplinski <G.Czaplinski@prioris.mini.pw.edu.pl>
Reply-To: Grzegorz Czaplinski <G.Czaplinski@prioris.mini.pw.edu.pl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: One of the freebsd-tips in fortune(1) is incorrect on time(1) command.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         55411
>Category:       misc
>Synopsis:       One of the freebsd-tips in fortune(1) is incorrect on time(1) command.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 08 23:50:05 PDT 2003
>Closed-Date:    Wed Aug 13 13:29:53 PDT 2003
>Last-Modified:  Wed Aug 13 13:29:53 PDT 2003
>Originator:     Grzegorz Czaplinski
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD prioris.mini.pw.edu.pl 4.8-STABLE FreeBSD 4.8-STABLE #0: Mon Aug 4 14:49:43 CEST 2003 rgregory@prioris.mini.pw.edu.pl:/users4/usr/obj/usr/src/sys/PRIORIS i386


	
>Description:
One of the freebsd-tips in fortune(1) is incorrect on time(1) command.

It says: 
To see how long it takes a command to run, type the word "time" before
the command name.
                -- Dru <genesis@istar.ca>

In fact that should be "\time" or /usr/bin/time. Builtin time does not
support -h switch.

>How-To-Repeat:
% time -h ping -c 2 host.com
zsh: command not found: -h
-h ping -c 2 host.com 0,00s user 0,01s system 515% cpu
0,002 total

Compare with this:

% \time -h ping -c 2 host.com
PING prioris.mini.pw.edu.pl (IP): 56 data bytes
64 bytes from (IP): icmp_seq=0 ttl=61 time=11.297 ms
64 bytes from (IP): icmp_seq=1 ttl=61 time=9.237 ms

--- host.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 9.237/10.267/11.297/1.030 ms
        1,01s real              0,00s user              0,00s sys

The tip is missleading.
>Fix:

Change the tip to: 
To see how long it takes a command to run, type the word "\time -h" before
the command name.

For example:
% \time -h ping -c 2 host.com
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ceri 
State-Changed-When: Wed Aug 13 13:28:53 PDT 2003 
State-Changed-Why:  
The fortune is fine. 
If it mentioned the -h switch then I'd agree, but it doesn't. 


Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-bugs 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Wed Aug 13 13:28:53 PDT 2003 
Responsible-Changed-Why:  
Not a ports bug. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=55411 
>Unformatted:
