delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=0.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_THEBAT,KHOP_THREADED |
X-Spam-Check-By: | sourceware.org |
Date: | Wed, 4 Apr 2012 05:35:58 +0400 |
From: | Andrey Repin <anrdaemon AT freemail DOT ru> |
Reply-To: | Andrey Repin <cygwin AT cygwin DOT com> |
Message-ID: | <696106181.20120404053558@mtu-net.ru> |
To: | Eric Blake <eblake AT redhat DOT com>, cygwin AT cygwin DOT com |
Subject: | Re: Is this supposed to work this way? |
In-Reply-To: | <4F7B9C81.4060209@redhat.com> |
References: | <0105D5C1E0353146B1B222348B0411A20A6536CB91 AT NIHMLBX02 DOT nih DOT gov> <602324786 DOT 20120404044708 AT mtu-net DOT ru> <4F7B9C81 DOT 4060209 AT redhat DOT com> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
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 |
Greetings, Eric Blake! >>> Is there a reason that something like the following wouldn't work? >> >>> if [ -f /bin/cygwin1.dll ] >> >> Hm. Turned out, this is more reliable check, than >> test "$OSTYPE" = "cygwin" && ... >> >> But, oh, so much for consistency... >> >> Question to Cygwin staff: shouldn't $OSTYPE be declared for Cygwin programs, >> even if they are not started from Cygwin shell? Is this at all possible? > No, not possible - $OSTYPE is not standardized, so there's no point in > expecting cygwin to provide it (of course, you can export it in your > ~/.bashrc). Furthermore, even if cygwin exported it, the moment your > cygwin process starts a non-cygwin process, that process would also see > the same setting. That raises another question: what is the standard way of detecting OS type? uname -o ? -- WBR, Andrey Repin (anrdaemon AT freemail DOT ru) 04.04.2012, <05:34> Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |