From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 8 23:50:07 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B03937B404 for ; Fri, 8 Aug 2003 23:50:07 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AC2743FB1 for ; Fri, 8 Aug 2003 23:50:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h796o5Up088734 for ; Fri, 8 Aug 2003 23:50:05 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h796o5S1088733; Fri, 8 Aug 2003 23:50:05 -0700 (PDT) Resent-Date: Fri, 8 Aug 2003 23:50:05 -0700 (PDT) Resent-Message-Id: <200308090650.h796o5S1088733@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Grzegorz Czaplinski Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 293C837B401 for ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/55411: One of the freebsd-tips in fortune(1) is incorrect on time(1) command. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Grzegorz Czaplinski List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2003 06:50:07 -0000 >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 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: