X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <47AB242B.10200@cyconix.com>
Date: Thu, 07 Feb 2008 15:30:51 +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
CC: Eric Blake <ebb9@byu.net>
Subject: Re: Incomplete environ when running MinGW apps?
References: <47AB1384.80600@cyconix.com> <47AB17C3.2030608@byu.net>
In-Reply-To: <47AB17C3.2030608@byu.net>
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

Eric Blake wrote:

> Bash has two variable namespaces - shell variables, and environment
> variables.  Are you sure SHELL was exported to the environment, and not
> just in the bash shell variable namespace?

thanks - I had no idea there were 2 variable namespaces. It looks like 
everything I can see in 'environ' was explcitly exported in 
/etc/profile, or ~/.bashrc, or picked up from Windows.

Is there a way for C programs to pick up the contents of the shell 
variable namespace? In particular, is there some way I can pick up 
SHELL, or some other way that I can find out if my app's running on bash?

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/

