delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/11/19:22:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Subject: Re: Beginnings of a patch: /etc/hosts
From: Robert Collins <rbcollins AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Cc: Paul Johnston <paj AT pajhome DOT org DOT uk>
In-Reply-To: <Pine.GSO.4.44.0209111845010.1269-300000@slinky.cs.nyu.edu>
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0209111845010 DOT 1269-300000 AT slinky DOT cs DOT nyu DOT edu>
Date: 12 Sep 2002 09:15:49 +1000
Message-Id: <1031786149.22457.114.camel@lifelesswks>
Mime-Version: 1.0

--=-ztM6jWUaByvptPHL23i/
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Thu, 2002-09-12 at 08:57, Igor Pechtchanski wrote:
> On Wed, 11 Sep 2002, Paul Johnston wrote:
>=20
> > > No, I'm not.  I'm incorporating Warren Young's suggestion.  Unless so=
meone
> > > 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 use=
r
> > defined $SYSTEMROOT on Win 9x.
>=20
> 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


--=-ztM6jWUaByvptPHL23i/
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQA9f86kI5+kQ8LJcoIRAvYyAKCAqSAPJ7gACgma3Ar/XWyGqgD//QCfZKQA
2z+BkzF8FwihdcHMWhJt3Hc=
=CMLk
-----END PGP SIGNATURE-----

--=-ztM6jWUaByvptPHL23i/--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019