Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
Subject:  $OS vs `uname -s`
Date:  Sun, 14 Aug 2005 16:28:18 -0400
Lines: 37
Message-ID:  <v0k6io1cwt.fsf@marajade.sandelman.ottawa.on.ca>
Mime-Version:  1.0
Content-Type:  multipart/signed; boundary="=-=-="; 	micalg=pgp-sha1; protocol="application/pgp-signature"
User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)
X-IsSubscribed: yes



I noticed that my cygwin bash shell has $OS defined already, as "Windows_NT"
while uname -s produces CYGWIN_NT-5.0. 

Normally, I expect `uname -r` to say "5.0", but it gives another number,
presumeably a cygwin version.

bash-3.00$ uname -s
CYGWIN_NT-5.0
bash-3.00$ echo $OS
Windows_NT

I only ask because my Makefiles from Unix would prefer to have $OS either not
set, or be equal to uname -s. Is there a reason why these things differ?
(My Makefile's will get changed to cope...)

-- 
] Michael Richardson          Xelerance Corporation, Ottawa, ON |  firewalls  [
] mcr @ xelerance.com           Now doing IPsec training, see   |net architect[
] http://www.sandelman.ca/mcr/    www.xelerance.com/training/   |device driver[
]                    I'm a dad: http://www.sandelman.ca/lrmr/                 [

--=-=-=
Content-Type: application/pgp-signature

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

iQCVAwUAQv+pZIqHRg3pndX9AQEfyAQAnkoFcuh3oVKudQIlTGqvdjv0or9/OgZU
42bdA1vYInl/5sTncpEHSKuXGp4/nB/l8ZFc+rUuFgQBJRGuVswuyTKeRdXPQS2S
lcTKdRLtWfn5kP5nOY/WOpp001NOx+ip57srx4KobWSJsQJK9f6rSUVGr39KvsOC
lY9RQ9Dkq+4=
=yNsy
-----END PGP SIGNATURE-----
--=-=-=--

