Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: Michael Richardson Subject: $OS vs `uname -s` Date: Sun, 14 Aug 2005 16:28:18 -0400 Lines: 37 Message-ID: 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----- --=-=-=--