This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Newbie: Setting environment variables from a .bat file
- From: Christopher Faylor <cgf-no-personal-reply-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 18 Aug 2006 01:19:59 -0400
- Subject: Re: Newbie: Setting environment variables from a .bat file
- References: <ec3ejc$kqv$1@sea.gmane.org>
- Reply-to: cygwin at cygwin dot com
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/