delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Subject: | RE: Incomplete environ when running MinGW apps? |
MIME-Version: | 1.0 |
Date: | Thu, 7 Feb 2008 16:01:20 -0000 |
Message-ID: | <5E25AF06EFB9EA4A87C19BC98F5C87531641A1@core-email.int.ascribe.com> |
From: | "Phil Betts" <Phil DOT Betts AT ascribe DOT com> |
To: | <cygwin AT cygwin DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id m17G0IMR020112 |
Paul Leder wrote on Thursday, February 07, 2008 3:31 PM:: > 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 Just export the variables you want. That's the whole point of the export command. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |