X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_THEBAT,KHOP_THREADED X-Spam-Check-By: sourceware.org Date: Wed, 4 Apr 2012 04:47:08 +0400 From: Andrey Repin Reply-To: Andrey Repin Message-ID: <602324786.20120404044708@mtu-net.ru> To: "Buchbinder, Barry (NIH/NIAID) [E]" , cygwin AT cygwin DOT com Subject: Re: Is this supposed to work this way? In-Reply-To: <0105D5C1E0353146B1B222348B0411A20A6536CB91@NIHMLBX02.nih.gov> References: <0105D5C1E0353146B1B222348B0411A20A6536CB91 AT NIHMLBX02 DOT nih DOT gov> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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, Buchbinder, Barry (NIH/NIAID) [E]! > 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? -- WBR, Andrey Repin (anrdaemon AT freemail DOT ru) 04.04.2012, <04:44> 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