From owner-freebsd-bugs@FreeBSD.ORG Mon Sep 22 15:10:03 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE05616A4B3 for ; Mon, 22 Sep 2003 15:10:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F1E543FDD for ; Mon, 22 Sep 2003 15:10:03 -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 h8MMA3FY093595 for ; Mon, 22 Sep 2003 15:10:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8MMA3xT093594; Mon, 22 Sep 2003 15:10:03 -0700 (PDT) (envelope-from gnats) Date: Mon, 22 Sep 2003 15:10:03 -0700 (PDT) Message-Id: <200309222210.h8MMA3xT093594@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Kirk Strauser Subject: Re: bin/57089: "w" does not honor the -n option X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Kirk Strauser List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2003 22:10:03 -0000 The following reply was made to PR bin/57089; it has been noted by GNATS. From: Kirk Strauser To: Dima Dorfman Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: bin/57089: "w" does not honor the -n option Date: Mon, 22 Sep 2003 17:07:46 -0500 --=-=-= Content-Transfer-Encoding: quoted-printable At 2003-09-22T21:54:10Z, Dima Dorfman writes: > I think the "-n" option is intended to prevent name resolution to avoid a > display delay--not necessarily to display numeric addresses (name > resolution can be slow, possibly requiring dialing out the Internet, and > so on, so it's useful to be able to tell w(1) not to do it). If utmp > already has a name, it can be displayed without incurring any lookup > delay, so w(1) does so. However, that's different from the behavior in 4.x systems (at least, as of the 4.7 server that I have access to): kirk@glaaki:/usr/src/usr.bin/w$ w -n 5:06PM up 14 days, 8:36, 3 users, load averages: 0.09, 0.06, 0.01 USER TTY FROM LOGIN@ IDLE WHAT corwin p0 12.218.138.143 1:09PM 1:10 psql template1 corwin p1 12.218.138.143 Sat09PM 21:47 -bash (bash) kirk p2 208.162.254.126 4:59PM - w -n I'd definitely think that's the more appropriate behavior, since it would be analogous to the "-n" (mnemmonic: "numeric") options of other utilities such as netstat. =2D-=20 Kirk Strauser --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQA/b3LC5sRg+Y0CpvERArlDAKCStwI1iQKTYXF4r3YDU5BHP2bFCgCgluGL HINves+MPdz0+DWOd8Og+No= =L9sy -----END PGP SIGNATURE----- --=-=-=--