Re: programming API to determine whether in "Cygwin environment"

2008-07-11 Thread Tony Last
Dave Korn wrote: > Tony Last wrote on 11 July 2008 16:24: > >> I have no idea who sets MAKE_MODE. > > Probably you did! It used to mean something to make a long time ago, > but > was always a user-controlled variable even then. Or it's possible he (and o

Re: programming API to determine whether in "Cygwin environment"

2008-07-11 Thread Tony Last
What about the following EVs which a quick "env" shows: "MAKE_MODE", "SHLVL", and "!C:"? I assume SHLVL is an artifact of bash and only present if bash is an ancestor? I have no idea who sets MAKE_MODE. And "!C:" is a very strange one but presumably is exported by Cygwin? -- View this message in

programming API to determine whether in "Cygwin environment"

2008-07-10 Thread Tony Last
My console program is built for native Windows (thus does not reply on cygwin1.dll). However, people may want to use it in a Cygwin environment and if they do I want it to behave in a suitably "Unixy" way. The obvious example is that when it prints out a pathname (which happens a lot) a Cygwin use