Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Reply-To: From: "Ralf Hauser" To: Subject: how to source the environment variables from windows within an existing cygwin window/terminal again? Date: Thu, 27 Mar 2003 09:06:12 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Hi, When I start cygwin by the desktop icon, it inherits the windows variables before it executes the ~/.bashrc and sets the environment variables specified therein. If I update/change the windows environment variables (right-click on "My Computer" - Properties - Advanced - Environment Variables), how can get these new variables into an already existing cygwin window? Also, it appears that when starting a new cygwin window out of an existing one (by running "cygstart /bin/bash"), the new one will not inherit from the windows environment in the same way as the first cygwin window did. I didn't find any hints to this in http://cygwin.com/cygwin-ug-net/setup-env.html or http://cygwin.com/cygwin-ug-net/using-cygwinenv.html or the http://cygwin.com/faq/faq.html nor in this mailing list archive - any other places I ought to have looked for it? Thanks for any hints in advance! Ralf P.S.: I got into these questions due to ssh-agent: i) When running ssh-agent out of cygwin, I also have to start wincvs or emacs out of the same cygwin shell (or children of it), otherwise, they will not be able to profit from ssh-agent. If I use win-ssh-agent.exe (see http://www.ganaware.org/S/win-ssh-askpass), the problem is the opposite: I can no longer eval it when starting it, ==> the terminal (and its children) from which I started win-ssh-agent.exe cannot profit from it. I have to kill it and start a new cygwin window by the desktop icon/link or the start-Programs-Menu. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/