delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/02/22/15:35:06

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Thu, 22 Feb 2001 15:21:10 -0500
From: Jason Tishler <Jason DOT Tishler AT dothill DOT com>
To: Cygwin-Developers <cygwin-developers AT cygwin DOT com>
Subject: Re: uname -s question
Message-ID: <20010222152110.I449@dothill.com>
Mail-Followup-To: Cygwin-Developers <cygwin-developers AT cygwin DOT com>
References: <20010222120933 DOT E449 AT dothill DOT com> <20010222130138 DOT N11175 AT redhat DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010222130138.N11175@redhat.com>; from cgf@redhat.com on Thu, Feb 22, 2001 at 01:01:38PM -0500
Organization: Dot Hill Systems Corp.

On Thu, Feb 22, 2001 at 01:01:38PM -0500, Christopher Faylor wrote:
> On Thu, Feb 22, 2001 at 12:09:33PM -0500, Jason Tishler wrote:
> >Does anyone use the information, that starts with the "_" in "uname -s"?
> >For example on NT 4.0, I'm referring to the "_NT-4.0".
> [snip]
> 
> I don't see why this is necessary.  It comes up repeatedly and the
> extremely simple solution is to match on CYGWIN*.  Many other systems
> use this convention.  For instance, look at gdb's configure.in or
> configure.tgt script.  There is a 'hpux*' and a 'solaris*'.

A Python developer was proposing changing sys.platform under Cygwin to
return

    cygwin

instead of the current value of

    cygwin_nt-4.01

Which would enable constructs like the following to work:

    if sys.platform in ['cygwin', 'linux']:
        # ...

I just figured that it was worth asking to "fix" this at the source
before they went ahead with their higher-level change.

> The information *could* potentially be important.  Cygwin running on
> NT is not the same thing as Cygwin running on 95.

Agreed -- which is why I felt squeamish even bringing this up.

Thanks,
Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corp.               Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason DOT Tishler AT dothill DOT com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

- Raw text -


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