X-Recipient: archive-cygwin@delorie.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: <20091201153816.GA21362@win.tue.nl> References: <8d7f7110911300444l7ab3c2c8l5ac1edf0097d2065@mail.gmail.com> <4B142061.6000200@cygwin.com> <8d7f7110911301717jbafbc2ci432817b1c713f1e6@mail.gmail.com> <20091201013022.GA2336@KCJs-Computer> <4B147423.1050404@bopp.net> <20091201153816.GA21362@win.tue.nl> Date: Tue, 1 Dec 2009 16:03:15 +0000 Message-ID: <416096c60912010803o33bf4c7dgbca2178307c83bcc@mail.gmail.com> Subject: Re: how to get the windows PATH env in cygwin From: Andy Koppe To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com 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 > A few weeks ago I got fed up with Cygwin not being able to find my > Windows executables It's not Cygwin's fault that Windows executables are sprinkled all over the filesystem. Cmd.exe also only finds stuff that's in the PATH. > and wrote a script to add all directories with > *.exe files to the $PATH. I bet that does wonders for performance. Andy -- 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