From owner-cvs-usrbin Mon Jun 17 11:49:08 1996 Return-Path: owner-cvs-usrbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA18894 for cvs-usrbin-outgoing; Mon, 17 Jun 1996 11:49:08 -0700 (PDT) Received: from spinner.DIALix.COM (spinner.DIALix.COM [192.203.228.67]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA18885; Mon, 17 Jun 1996 11:49:03 -0700 (PDT) Received: from spinner.DIALix.COM (localhost.DIALix.oz.au [127.0.0.1]) by spinner.DIALix.COM (8.7.5/8.7.3) with ESMTP id CAA01858; Tue, 18 Jun 1996 02:49:00 +0800 (WST) Message-Id: <199606171849.CAA01858@spinner.DIALix.COM> X-Mailer: exmh version 1.6.6 3/24/96 To: "Andrey A. Chernov" cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org Subject: Re: cvs commit: src/usr.bin/w w.c In-reply-to: Your message of "Mon, 17 Jun 1996 11:35:21 MST." <199606171835.LAA17950@freefall.freebsd.org> Date: Tue, 18 Jun 1996 02:49:00 +0800 From: Peter Wemm Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >ache 96/06/17 11:35:19 > > Modified: usr.bin/w w.c > Log: > Don't try convert "-" to numeric form for -n option I'm not sure I like the direction this is going.. The ut_host field is useful for storing various sorts of useful information, the changes that have just been made cause 'w -n' to break and print error messages if it cant resolve an internet-visible hostname in the field. At the very least, it should print what was there rather than breaking the formatting to print an error and no ut_host data. IMHO, the -n option was documented badly. As originally implemented, it was a "dont convert IP addresses to names" flag, but the man page wasn't in sync. I think that actively attempting to *convert* ut_host data to IP addresses (consider what 'screen' and the various 'xterm' etc programs put in there) is a mistake. Cheers, -Peter