X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4E01B8FC54D24140A0EAF5118592D5BF@cit.wayne.edu> References: <8d7f7110911300444l7ab3c2c8l5ac1edf0097d2065 AT mail DOT gmail DOT com> <4B142061 DOT 6000200 AT cygwin DOT com> <8d7f7110911301717jbafbc2ci432817b1c713f1e6 AT mail DOT gmail DOT com> <20091201013022 DOT GA2336 AT KCJs-Computer> <4B147423 DOT 1050404 AT bopp DOT net> <20091201153816 DOT GA21362 AT win DOT tue DOT nl> <416096c60912010803o33bf4c7dgbca2178307c83bcc AT mail DOT gmail DOT com> <31b7d2790912011042k625d8adak88022ead8be9633d AT mail DOT gmail DOT com> <4E01B8FC54D24140A0EAF5118592D5BF AT cit DOT wayne DOT edu> From: "DePriest, Jason R." Date: Tue, 1 Dec 2009 15:06:09 -0600 Message-ID: <31b7d2790912011306t6ce137dejb1b039f36667114e@mail.gmail.com> Subject: Re: how to get the windows PATH env in cygwin To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: 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 Tue, Dec 1, 2009 at 2:24 PM, Lee Maschmeyer <> wrote: >> To verify it, all you have to do is open a bash prompt (Cygw > 0/tty2W0(2)$ echo $PATH > /home/lmaschm/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/c/Program > Files/Common Files/Microsoft Shared/Windows Live:/c/WINDOWS > /system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/system32/WindowsPowerShell/v1.0:/c/Program > Files/Common Files/Microsoft Sha > red/Windows Live:/usr/lib/lapack > 0/tty2W0(2)$ cmd > Microsoft Windows XP [Version 5.1.2600] > (C) Copyright 1985-2001 Microsoft Corp. > > C:\cygwin-1.7\home\lmaschm>path > path > PATH=C:\cygwin-1.7\home\lmaschm\bin;C:\cygwin-1.7\usr\local\bin;C:\cygwin-1.7\bin;C:\cygwin-1.7\bin;C:\cygwin-1.7\usr\X11R6\bin;C:\P > rogram Files\Common Files\Microsoft Shared\Windows > Live;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\ > WindowsPowerShell\v1.0;C:\Program Files\Common Files\Microsoft > Shared\Windows Live;C:\cygwin-1.7\lib\lapack > > C:\cygwin-1.7\home\lmaschm>exit > exit > 0/tty2W0(2)$ of course if you run cmd from a bash prompt it will have the cygwin pre-pended path because it inherited it from its parent process ran mintty from start menu $ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Python26/:/cygdrive/c/Program Files (x86)/ActiveState Komodo IDE 5/ ... etc ran cmd.exe from start menu C:\>path PATH=C:\Python26\;C:\Program Files (x86)\ActiveState Komodo IDE 5\ ... etc no cygwin path even though the bash prompt with the cygwin pre-pended path is still open and still has the new (or rather, modified) path variable -Jason -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple