Date: Wed, 13 Aug 2003 22:47:09 +0200 From: Grzegorz Czaplinski <G.Czaplinski@prioris.mini.pw.edu.pl> To: Ceri Davies <ceri@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. Message-ID: <20030813204708.GO13622@prioris.mini.pw.edu.pl> In-Reply-To: <200308132029.h7DKTrmN051522@freefall.freebsd.org> References: <200308132029.h7DKTrmN051522@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <gregory at prioris.mini.pw.edu.pl> "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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030813204708.GO13622>