delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/14/16:31:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
To: cygwin AT cygwin DOT com
From: Michael Richardson <mcr AT sandelman DOT ottawa DOT on DOT 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
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-----
--=-=-=--

- Raw text -


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