From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15132 invoked by alias); 16 Nov 2001 16:40:30 -0000 Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Received: (qmail 15111 invoked from network); 16 Nov 2001 16:40:30 -0000 Received: from unknown (HELO cos-fw) (216.253.253.254) by sourceware.cygnus.com with SMTP; 16 Nov 2001 16:40:30 -0000 Received: from cpex3.channelpoint.com (cpex3.channelpoint.com [10.112.2.27]) by talisker.channelpoint.com (8.11.0/8.11.0) with ESMTP id fAGGePQ18442; Fri, 16 Nov 2001 09:40:25 -0700 (MST) Received: by cpex3.channelpoint.com with Internet Mail Service (5.5.2653.19) id ; Fri, 16 Nov 2001 09:40:27 -0700 Message-ID: <09719EC6B8C4D5119A7600D0B76FDDE10B842E@cpex3.channelpoint.com> From: Troy Noble To: "'Daniel Steinmann'" , cygwin@cygwin.com Subject: RE: bash-2.05a-1: OSTYPE is empty Date: Sun, 11 Nov 2001 08:26:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Scanned-By: MIMEDefang 1.0 (http://www.roaringpenguin.com/mimedefang/) X-SW-Source: 2001-11/txt/msg00446.txt.bz2 Instead you can safely use the following across platforms (works on Unix in other words): case `uname` in CYGWIN*) # cygwin-specific stuff here such as OSTYPE=cygwin ;-> ;; *) # non-cygwin stuff here ;; esac To ease maintainability, be sure not to use CYGWIN_NT* or CYGWIN_NT-5* if possible. Or has that been changed now? I remember talk of it on the list a couple months back. I suspect others are going to experience the same Makefile and shell script breakage if they were relying on OSTYPE & friends. The uname thing is more stable since it doesn't rely on any feature of bash per se. Troy -----Original Message----- From: Daniel Steinmann [mailto:daniel.steinmann@insonic.com] Sent: Friday, November 16, 2001 6:46 AM To: cygwin@cygwin.com Subject: Re: bash-2.05a-1: OSTYPE is empty Corinna Vinschen wrote: > However, the following is given in the ChangeLog: > > x. Bash no longer auto-exports HOSTNAME, HOSTTYPE, MACHTYPE, or OSTYPE, > even if it assigns them default values. Obviously I did not read the bash ChangeLog, sorry. Now it is clear why in my Makefile the check for OSTYPE does not work anymore. Thank you for your help, Daniel. -- Daniel Steinmann, Insonic AG, Zuerich, Switzerland daniel.steinmann@insonic.com, +41 1 456 50 00, fax: +41 1 456 50 01 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/