Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Dec 1998 21:26:44 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        des@flood.ping.uio.no, sprice@hiwaay.net
Cc:        cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG
Subject:   Re: cvs commit: src/usr.bin/w w.c
Message-ID:  <199812251026.VAA28449@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812251026.VAA28449>