This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Incomplete environ when running MinGW apps?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]