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: 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/


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