X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <47AB31C7.3040909@cyconix.com>
Date: Thu, 07 Feb 2008 16:28:55 +0000
From: Paul Leder <sa212+mingw@cyconix.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Incomplete environ when running MinGW apps?
References: <5E25AF06EFB9EA4A87C19BC98F5C87531641A1@core-email.int.ascribe.com>
In-Reply-To: <5E25AF06EFB9EA4A87C19BC98F5C87531641A1@core-email.int.ascribe.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Phil Betts wrote:

> Just export the variables you want.  That's the whole point of the
> export command.

They're not my variables. I've written an app which runs on Linux and 
"Windows". Most of the time on "Windows", it's probably going to be 
running on Cygwin/bash. However, there's always going to be someone who 
runs it in a DOS box.

So, my problem is, how do I find out if they've got a sane shell or not? 
I can't ask them to export SHELL; I might as well just ask them to 
provide a command-line arg to tell me what their shell is anyway. I need 
some automatic way to do it.

Thanks

-Paul

--
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/

