This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: $OS vs `uname -s` [Attn: base-files maintainer]
- From: "Gerrit P. Haase" <gerrit at familiehaase dot de>
- To: Eric Blake <ebb9 at byu dot net>
- Cc: Michael Richardson <mcr at sandelman dot ottawa dot on dot ca>, cygwin at cygwin dot com
- Date: Mon, 15 Aug 2005 14:05:14 +0200
- Subject: Re: $OS vs `uname -s` [Attn: base-files maintainer]
- References: <v0k6io1cwt.fsf@marajade.sandelman.ottawa.on.ca> <43008152.20500@byu.net>
Eric Blake wrote:
If your setup is like mine, OS is an inherited environment variable, set
by Windows before bash is even started. You can set it to whatever you
like. Meanwhile, uname -s is not affected by the environment (you really
don't want an environment variable changing the uname output). Hmm, maybe
we should update /etc/profile to do OS=`uname -s`. Thoughts?
No, IMO leave it alone.
We are on Windows and there are several flavours, I need to know if
I'm on NT or Win98 and the few Windows environment settings are useful.
FWIW, it is not defined on my Slackware box:
$ ssh slackware -l root
root@slackware's password:
Last login: Thu Aug 11 19:43:51 2005
Linux 2.4.22.
root@slackware:~# uname -s
Linux
root@slackware:~# echo $OS
root@slackware:~# echo $SHELL
/bin/bash
Gerrit
--
=^..^=
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/