This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: detecting runtime environment
- From: Larry Hall <cygwin-lh at cygwin dot com>
- To: Antonio Querubin <tony at lava dot net>, cygwin at cygwin dot com
- Date: Fri, 09 Jan 2004 11:38:26 -0500
- Subject: Re: detecting runtime environment
- References: <Pine.CYG.4.58.0401090019340.352@tempura>
- Reply-to: Cygwin List <cygwin at cygwin dot com>
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/