Web lists-archives.org

[Mingw-users] How can I tell whether my prog is running on cmd.exe or bash?




My console code behaves differently when running in a DOS box and when 
running on Cygwin's bash. Can anyone suggest a way to find out what a 
program is running under? I guess that I could check environment 
variables, or try running uname, but this seems kludgey.

Thanks

-Paul

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users