Newbie: Setting environment variables from a .bat file
Christopher Faylor
cgf-no-personal-reply-please@cygwin.com
Fri Aug 18 05:33:00 GMT 2006
On Thu, Aug 17, 2006 at 11:10:20PM -0500, Neil Kolban wrote:
>Folks,
>I have some windows BAT files that set some windows CMD environment
>variables. I am hoping to run a shell under cygwin but when I run the BAT
>files from a shell prompt, the BAT file set variables are not exported to
>the parent shell. Is there a way that I can have BAT file set variables
>visible in the calling environment?
No. Environment variables propagate "down" not "up". You can't set an
environment variable in a child and see it in its parent, in Windows, Linux,
or Cygwin.
cgf
--
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/
More information about the Cygwin
mailing list