Date: Sat, 9 Aug 2003 08:48:16 +0200 (CEST) From: Grzegorz Czaplinski <G.Czaplinski@prioris.mini.pw.edu.pl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/55411: One of the freebsd-tips in fortune(1) is incorrect on time(1) command. Message-ID: <20030809064816.56718243C7@prioris.mini.pw.edu.pl> Resent-Message-ID: <200308090650.h796o5S1088733@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030809064816.56718243C7>