This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: 1.3.22-1 cannot find certain commands
- From: "Hannu E K Nevalainen \(garbage mail\)" <garbage_collector at telia dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 15 May 2003 22:39:32 +0200
- Subject: RE: 1.3.22-1 cannot find certain commands
Hmm... this might help:
$ where
WHERE: No pattern(s).
Usage: WHERE [/r dir] [/qte] pattern ...
/r - recurse starting with directory dir
/q - quiet, use exit code
/t - times, display size and time
/e - .EXE, display .EXE type
/Q - double quote the output
WHERE notepad.exe Find ALL notepad.exe along the path
WHERE $windir:notepad.exe Find ALL notepad.exe along %windir%
WHERE /r \ notepad.exe Find ALL notepad.exe on current drive
WHERE /r . notepad.exe Find ALL notepad.exe recursing on current
directory
WHERE /r c:\windows\system notepad.exe Find ALL notepad.exe recursing
on c:\windows\system
Wildcards, * ?, allowed in bar in all of above.
$ where where.exe
c:\Program\Win98RK\where.exe
i.e. it is from the Windows 98 Resource Kit (Win98 CD!)
$ where ls.exe
C:\Program\cygwin\bin\ls.exe
$ where cpp.exe
C:\Program\cygwin\bin\cpp.exe
c:\PROGRAM\BC5\BIN\cpp.exe
This won't show clashing directory entries though...
IIRC I have read something about a directory named "ls" being found by
stat() before ls.exe... or some such, search the archives?
/Hannu E K Nevalainen, Mariefred, Sweden
--
--END OF MESSAGE--
--
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/