| delorie.com/archives/browse.cgi | search |
| 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 |
| From: | "Hannu E K Nevalainen \(garbage mail\)" <garbage_collector AT telia DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | RE: 1.3.22-1 cannot find certain commands |
| Date: | Thu, 15 May 2003 22:39:32 +0200 |
| Message-ID: | <NGBBLLIAMFLGJEOAJCCECELMCPAA.garbage_collector@telia.com> |
| MIME-Version: | 1.0 |
| X-Priority: | 3 (Normal) |
| X-MSMail-Priority: | Normal |
| In-Reply-To: | <16067.34423.565000.192717@missioncriticalit.com> |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4925.2800 |
| Importance: | Normal |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |