This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Where is patch?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]