This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Is this supposed to work this way?
- From: Andrey Repin <anrdaemon at freemail dot ru>
- To: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder at niaid dot nih dot gov>, cygwin at cygwin dot com
- Date: Wed, 4 Apr 2012 04:47:08 +0400
- Subject: Re: Is this supposed to work this way?
- References: <0105D5C1E0353146B1B222348B0411A20A6536CB91@NIHMLBX02.nih.gov>
- Reply-to: Andrey Repin <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@freemail.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