Beginnings of a patch: /etc/hosts

Robert Collins rbcollins@cygwin.com
Wed Sep 11 16:35:00 GMT 2002


On Thu, 2002-09-12 at 08:57, Igor Pechtchanski wrote:
> On Wed, 11 Sep 2002, Paul Johnston wrote:
> 
> > > No, I'm not.  I'm incorporating Warren Young's suggestion.  Unless someone
> > > with ME can confirm that 'uname -s' returns CYGWIN_9*?  Nicholas?
> >
> > To me that's a step backwards - uname -s or $OS are the correct ways to
> > detect the operating system. Warren's approach would be fooled if a user
> > defined $SYSTEMROOT on Win 9x.
> 
> Win 9x does not set $OS...  At least my Win 98 machine at home doesn't.
> Besides, the user can always set $OS to fool the script,

Rule #1: The user knows better than the tool. If the user wants to fool
the script, they can, even with uname. If a user is doing that, assume
they have a reason and let them do it with grace.

Rob

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://cygwin.com/pipermail/cygwin/attachments/20020911/f3b98105/attachment.sig>


More information about the Cygwin mailing list