Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: Sat, 24 Feb 2001 18:22:51 -0500 From: Christopher Faylor To: Cygwin-Developers Subject: Re: uname -s question Message-ID: <20010224182251.A6893@redhat.com> Reply-To: cygwin-developers AT cygwin DOT com Mail-Followup-To: Cygwin-Developers References: <20010222120933 DOT E449 AT dothill DOT com> <20010222130138 DOT N11175 AT redhat DOT com> <20010222152110 DOT I449 AT dothill DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <20010222152110.I449@dothill.com>; from Jason.Tishler@dothill.com on Thu, Feb 22, 2001 at 03:21:10PM -0500 On Thu, Feb 22, 2001 at 03:21:10PM -0500, Jason Tishler wrote: >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']: > # ... Can't you do something equivalent with regular expressions in python? cgf