detecting runtime environment
Larry Hall
cygwin-lh@cygwin.com
Fri Jan 9 16:53:00 GMT 2004
At 05:26 AM 1/9/2004, Antonio Querubin you wrote:
>I want a program (written in C) to behave a little differently depending
>on whether it's started in a cygwin window or started from a DOS/Windows
>command prompt window. Is there a standard method for detecting, at
>run-time, which environment a program was started in?
Standard? No. Probably relying on environment variables is the most
common approach to something like this. You could look for "SHELL" for
example.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
--
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/
More information about the Cygwin
mailing list