On Thu, Jul 10, 2008 at 10:32:57PM -0700, Yitzchak Scott-Thoennes wrote: >On Thu, July 10, 2008 10:06 pm, Christopher Faylor wrote: >> On Thu, Jul 10, 2008 at 08:49:06PM -0700, Tony Last wrote: >>> My console program is built for native Windows (thus does not reply on >>> cygwin1.dll). >>> >>> So I'm looking for a boolean method which will allow a program to tell >>> whether it was run from within a Cygwin shell. >> >> A PATH containing colons which weren't preceded by just a single >> alphabetic character would be a clue but it wouldn't be foolproof. A HOME >> environment variable with no colons and forward slashes would be another >> clue. I don't think there is a foolproof test, though. > >Both HOME and PATH are translated by the time the non-cygwin program >sees them, though??
Oops. Yes. What was I thinking? Sorry for the misinformation and thanks for the correction. Nevermind. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/