bin/57089: "w" does not honor the -n option

Kirk Strauser kirk at strauser.com
Mon Sep 22 15:10:03 PDT 2003


The following reply was made to PR bin/57089; it has been noted by GNATS.

From: Kirk Strauser <kirk at strauser.com>
To: Dima Dorfman <dima at trit.org>
Cc: FreeBSD-gnats-submit at 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 <dima at trit.org> 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 at 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-----
 --=-=-=--
 


More information about the freebsd-bugs mailing list