This is the mail archive of the cygwin@cygwin.com 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: which & locate


On Mon, Jul 29, 2002 at 01:28:09PM +0200, Alex Vinokur wrote:
>
>
>> -----Original Message-----
>> From: Mark Sheppard [mailto:msheppard@climax.co.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/


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