X-Spam-Check-By: sourceware.org From: "Dave Korn" To: Subject: RE: Where is patch? Date: Thu, 15 Dec 2005 20:25:45 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <43A1CF1B.2010504@student.lu.se> Message-ID: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk 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 Lennart Borgman wrote: > I tried a just to copy patch.exe. Then I saw this that I just wish I did > not. Here is a copy and paste from my screen output (a bit truncated): > > >>>>>> from my screen >>>>>>>>> > /cygdrive/d/dl/gnu/patch-2.5.9 > ./patch.exe --version > patch 2.5.9 > ... > /cygdrive/d/dl/gnu/patch-2.5.9 > cp patch.exe /usr/local/bin/ > /cygdrive/d/dl/gnu/patch-2.5.9 > /usr/local/bin/patch.exe --version > patch 2.5.9 > ... > /cygdrive/d/dl/gnu/patch-2.5.9 > cd .. > /cygdrive/d/dl/gnu > which patch > /usr/local/bin/patch > /cygdrive/d/dl/gnu > patch --version > patch 2.5.8 > ... > /cygdrive/d/dl/gnu > patch.exe --version > patch 2.5.9 > ... > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > After a while it reported 2.5.9. I am not sure about the reason. I > started another copy of Cygwin in another window. I also changed PATH, > but I am not sure in which order now. This is (one of the reasons) why you should never put "." in your $PATH! Also, after installing new software, you need to use "hash -r" to refresh bash's cached list of locations of executables. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/