ports/55411: One of the freebsd-tips in fortune(1) is incorrect on time(1) command.

Grzegorz Czaplinski G.Czaplinski at prioris.mini.pw.edu.pl
Sat Aug 9 06:50:07 UTC 2003


>Number:         55411
>Category:       ports
>Synopsis:       One of the freebsd-tips in fortune(1) is incorrect on time(1) command.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 08 23:50:05 PDT 2003
>Closed-Date:
>Last-Modified:
>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 at 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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list