delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/29/11:09:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Mon, 29 Jul 2002 11:09:40 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: which & locate
Message-ID: <20020729150940.GB16707@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <714864C61F42474DA303505B01544D150146513B AT hermes DOT scopus DOT net>
Mime-Version: 1.0
In-Reply-To: <714864C61F42474DA303505B01544D150146513B@hermes.scopus.net>
User-Agent: Mutt/1.3.23.1i

On Mon, Jul 29, 2002 at 01:28:09PM +0200, Alex Vinokur wrote:
>
>
>> -----Original Message-----
>> From: Mark Sheppard [mailto:msheppard AT climax DOT co DOT uk]
>> Sent: Monday, July 29, 2002 11:15 AM
>> To: 'Sylvain Petreolle'; Alex Vinokur; Cygwin Mailing List
>> Subject: RE: which & locate
>> 
>> 
>> Try:
>> 
>>   locate */ls.exe
>
>
>$ which ls
>/usr/bin/ls
>
>
>$ which ls.exe
>/usr/bin/ls.exe
>
>
>$ locate */ls.exe
>/bin/ls.exe
>
>
>$ locate */ls
>/usr/share/irc/help/note/ls

which != locate.  locate has not been especially adapted to understand
the windows .exe convention.  which has been, obviously.

So, as others have indicated use "locate ls.exe".

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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