delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-10.2 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4F7B9C81.4060209@redhat.com> |
Date: | Tue, 03 Apr 2012 18:57:37 -0600 |
From: | Eric Blake <eblake AT redhat DOT com> |
User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Is this supposed to work this way? |
References: | <0105D5C1E0353146B1B222348B0411A20A6536CB91 AT NIHMLBX02 DOT nih DOT gov> <602324786 DOT 20120404044708 AT mtu-net DOT ru> |
In-Reply-To: | <602324786.20120404044708@mtu-net.ru> |
OpenPGP: | url=http://people.redhat.com/eblake/eblake.gpg |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
--------------enigA6A17D763319E8BF387E0F18 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 04/03/2012 06:47 PM, Andrey Repin wrote: > Greetings, Buchbinder, Barry (NIH/NIAID) [E]! >=20 >> Is there a reason that something like the following wouldn't work? >=20 >> if [ -f /bin/cygwin1.dll ] >=20 > Hm. Turned out, this is more reliable check, than > test "$OSTYPE" =3D "cygwin" && ... >=20 > But, oh, so much for consistency... >=20 > Question to Cygwin staff: shouldn't $OSTYPE be declared for Cygwin progra= ms, > 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. --=20 Eric Blake eblake AT redhat DOT com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enigA6A17D763319E8BF387E0F18 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJPe5yBAAoJEKeha0olJ0NqEf0IAKHt0URny5sEFMkLnLPfMrnK R+xHp3rqnge0oNhP0XHk33jlpKejIzzJuLqBKun8uPywccA1WZPn0bTiIMwsqqcM Om9AjNuh5Koqup8xoo1tKFx9f/uN+Yo8/oBbeMcR0jyD2YvdXitR9gDGPqTT+u14 jQXuYvBVZmsgC/sYBUGzTwVr7tmie+QYZxQQBfvF/qkk9DY1n6kpJHLp6Gs0qOGl ZcgtJ64F07pBNn4eAe9pqZkL3xGsEIPHFTm15wSphT+1j7+HnB/lDM/zosRl0T86 G3/lz5OHgK1nDBV7OkS92XiryOfFGJM6br1uu6p90fYzZvOkVRUCiNibaUcm+OA= =OBVo -----END PGP SIGNATURE----- --------------enigA6A17D763319E8BF387E0F18--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |