X-Spam-Check-By: sourceware.org Date: Fri, 18 Aug 2006 01:19:59 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Newbie: Setting environment variables from a .bat file Message-ID: <20060818051959.GA801@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list 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/