delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/15/15:26:00

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Where is patch?
Date: Thu, 15 Dec 2005 20:25:45 -0000
MIME-Version: 1.0
In-Reply-To: <43A1CF1B.2010504@student.lu.se>
Message-ID: <SERRANOydd0wBzHpYrQ0000004b@SERRANO.CAM.ARTIMI.COM>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019