X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_20,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RCVD_IN_SORBS_WEB,SPF_HELO_PASS X-Spam-Check-By: sourceware.org From: "James Johnston" To: References: <50337A02 DOT 8070809 AT redhat DOT com> In-Reply-To: Subject: RE: /etc/profile Date: Tue, 21 Aug 2012 15:02:40 -0000 Message-ID: <017501cd7fae$044a07d0$0cde1770$@motionview3d.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 > -----Original Message----- > Sent: Tuesday, August 21, 2012 14:39 > Subject: Re: /etc/profile > > > Eric Blake redhat.com> writes: > > Unfortunately, at least your windows system dll directory has to be on > > PATH, or cygwin1.dll will fail to load, so blindly removing ALL > > windows paths from PATH is wrong. > > At that point cygwin1.dll is already loaded and so far I haven't seen anything > not working due to that change. But yes, I didn't think of that, so I'm curious > why it seems to work as nicely as it does. > Read section "Search order for desktop applications" at "Dynamic-Link Library Search Order" at http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).as px Bottom line, you don't need system32 in the path for DLL loading to work. I seem to recall that some earlier versions of Windows actually did not include system32 in the PATH by default. -- 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