X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Date: Wed, 2 Dec 2009 00:27:07 +0100 To: cygwin AT cygwin DOT com Subject: Re: how to get the windows PATH env in cygwin Message-ID: <20091201232707.GE29782@win.tue.nl> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31b7d2790912011042k625d8adak88022ead8be9633d@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) From: rp AT win DOT tue DOT nl (Reinier Post) 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 01, 2009 at 12:42:01PM -0600, DePriest, Jason R. wrote: > On Tue, Dec 1, 2009 at 10:03 AM, Andy Koppe <> wrote: > > 2009/12/1 Reinier Post: > >>> If you want to see the Windows PATH setting unmolested by Cygwin, you > >>> will either need to strip out the additions set by /etc/profile or avoid > >>> running under an environment modified by /etc/profile. > >> > >> It doesn't add, actually - it replaces it. > > > > You're wrong. The Cygwin DLL at startup translates the Windows PATH > > variable. And this line in /etc/profile adds to it: > > > > PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH True. I grepped for that line, read it, and didn't see the $PATH. > This is completely and totally true. > > To verify it, all you have to do is open a bash prompt (Cygwin.bat, > mintty, rxvt, whatever) and then launch a cmd.exe or powershell. Not quite. I did this, but missed the .bash_profile I forgot I created three years ago. Sorry. -- Reinier -- 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