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: Newbie: Setting environment variables from a .bat file


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/


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