From owner-cvs-all Fri Dec 25 02:27:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA25728 for cvs-all-outgoing; Fri, 25 Dec 1998 02:27:05 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA25721; Fri, 25 Dec 1998 02:27:02 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id VAA28449; Fri, 25 Dec 1998 21:26:44 +1100 Date: Fri, 25 Dec 1998 21:26:44 +1100 From: Bruce Evans Message-Id: <199812251026.VAA28449@godzilla.zeta.org.au> To: des@flood.ping.uio.no, sprice@hiwaay.net Subject: Re: cvs commit: src/usr.bin/w w.c Cc: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk >Userland applications shouldn't use __progname. Besides in this >case we really don't care if the path is present or not. All we >are looking for is something that looks like 'uptime'. Of course >this is still broken if you do something bizarre like /bin-uptime/w >and expect w(1) semantics. Then again the original version would >treat 'umm-w' as uptime(1) and 'my-uptime' as 'w'. Not a perfect >solution either way but I think the way it stands now fits the >original intent and doesn't use variables that aren't intended >for use in userland. OpenBSD requires __progname to be "w", "uptime", "-w" or "-uptime" but doesn't tell you about the names starting with "-" in the error message. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message