From owner-freebsd-bugs@FreeBSD.ORG Wed Aug 13 13:47:17 2003 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B969037B401; Wed, 13 Aug 2003 13:47:17 -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 4924843F3F; Wed, 13 Aug 2003 13:47:16 -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 E019D243C8; Wed, 13 Aug 2003 22:47:14 +0200 (CEST) Received: by prioris.mini.pw.edu.pl (Postfix, from userid 1368) id 6FD12243C6; Wed, 13 Aug 2003 22:47:09 +0200 (CEST) Date: Wed, 13 Aug 2003 22:47:09 +0200 From: Grzegorz Czaplinski To: Ceri Davies Message-ID: <20030813204708.GO13622@prioris.mini.pw.edu.pl> Mail-Followup-To: Ceri Davies , freebsd-ports-bugs@FreeBSD.org, freebsd-bugs@FreeBSD.org References: <200308132029.h7DKTrmN051522@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QqzFzR/RUlLahzby" Content-Disposition: inline In-Reply-To: <200308132029.h7DKTrmN051522@freefall.freebsd.org> User-Agent: Mutt/1.4.1i X-PGP: http://prioris.mini.pw.edu.pl/~gregory/pgp.txt X-URL: http://prioris.mini.pw.edu.pl/~gregory/ X-Voice: +48 692 412 424 X-FreeBSD: Running FreeBSD? - Share the server config! - http://prioris.mini.pw.edu.pl/~gregory/FreeBSD/ X-Virus-Scanned: by AMaViS (prioris) cc: freebsd-ports-bugs@FreeBSD.org cc: freebsd-bugs@FreeBSD.org Subject: Re: misc/55411: One of the freebsd-tips in fortune(1) is incorrect on time(1) command. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2003 20:47:18 -0000 --QqzFzR/RUlLahzby Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 13, 2003 at 01:29:53PM -0700, Ceri Davies wrote: > Synopsis: One of the freebsd-tips in fortune(1) is incorrect on time(1) c= ommand. >=20 > State-Changed-From-To: open->closed > State-Changed-By: ceri > State-Changed-When: Wed Aug 13 13:28:53 PDT 2003 > State-Changed-Why:=20 > The fortune is fine. > If it mentioned the -h switch then I'd agree, but it doesn't. >=20 >=20 > 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:=20 > Not a ports bug. >=20 Hi there, STOP! I see you don't get the whole point. This is not the only one error in fortune tips given by Dru*. Consider that: 1. alphax# time ping -c prioris.mini.pw.edu.pl ping: invalid count of packets to transmit: `prioris.mini.pw.edu.pl' 0.000u 0.004s 0:00.04 0.0% 0+0k 1+0io 6pf+0w alphax# time ping -c 2 prioris.mini.pw.edu.pl PING prioris.mini.pw.edu.pl (194.29.178.2): 56 data bytes 64 bytes from 194.29.178.2: icmp_seq=3D0 ttl=3D68 time=3D0.874 ms 64 bytes from 194.29.178.2: icmp_seq=3D1 ttl=3D68 time=3D0.602 ms --- prioris.mini.pw.edu.pl ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev =3D 0.602/0.738/0.874/0.136 ms 0.000u 0.008s 0:01.06 0.0% 0+0k 0+0io 4pf+0w 2. alphax# \time ping -c 2 prioris.mini.pw.edu.pl PING prioris.mini.pw.edu.pl (194.29.178.2): 56 data bytes 64 bytes from 194.29.178.2: icmp_seq=3D0 ttl=3D68 time=3D0.675 ms 64 bytes from 194.29.178.2: icmp_seq=3D1 ttl=3D68 time=3D0.630 ms --- prioris.mini.pw.edu.pl ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev =3D 0.630/0.653/0.675/0.022 ms 1.02 real 0.00 user 0.00 sys 3. alphax# \time -h ping -c 2 prioris.mini.pw.edu.pl PING prioris.mini.pw.edu.pl (194.29.178.2): 56 data bytes 64 bytes from 194.29.178.2: icmp_seq=3D0 ttl=3D68 time=3D0.683 ms 64 bytes from 194.29.178.2: icmp_seq=3D1 ttl=3D68 time=3D0.507 ms --- prioris.mini.pw.edu.pl ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev =3D 0.507/0.595/0.683/0.088 ms 1.01s real 0.00s user 0.00s sys These examples are from: alphax# uname -a FreeBSD alphax.mini.pw.edu.pl 5.1-RELEASE FreeBSD 5.1-RELEASE #1: Mon Jun 16 20:46:55 CEST 2003 root@alphax.mini.pw.edu.pl:/usr/obj/usr/src/s= ys/ The shell is csh. From zsh it looks much different: alphax# time ping -c 2 prioris.mini.pw.edu.pl PING prioris.mini.pw.edu.pl (194.29.178.2): 56 data bytes 64 bytes from 194.29.178.2: icmp_seq=3D0 ttl=3D68 time=3D0.666 ms 64 bytes from 194.29.178.2: icmp_seq=3D1 ttl=3D68 time=3D0.642 ms --- prioris.mini.pw.edu.pl ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev =3D 0.642/0.654/0.666/0.012 ms ping -c 2 prioris.mini.pw.edu.pl 0.00s user 0.01s system 0% cpu 1.012 total If someone has csh as his/her default shell the output is totally unreadable. This is because you call shells builtin. Prefixing time command with a "\" you prevent such errors as then you call time(1). I guess you did not perform any tests before closing the PR. Have a good one, greg -- Grzegorz Czaplinski "The Power to Serve, Right for the Power Users!" - http://www.FreeBSD.org/ Fingerprint: EB77 E19D CFA2 5736 810F 847C A70F A275 2489 469F --QqzFzR/RUlLahzby Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/OqPMpw+idSSJRp8RAnr0AKDGve6CatUJDazF+iv33jbDx23FsACfYjy0 XIPsdtvbBYLLJ8Z5b1J3bxI= =Dskq -----END PGP SIGNATURE----- --QqzFzR/RUlLahzby--