Opened 9 years ago
Closed 4 years ago
#237 closed enhancement (wontfix)
Use an OS/2 friendly version of which.exe
| Reported by: | Dave Yeo | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | rpm | Version: | |
| Severity: | low | Keywords: | |
| Cc: | dave.r.yeo@… |
Description
The which that RPM installs is pretty basic and can only search for executables.
There are OS/2 ports such as which-2.1.4_os2.zip or which215.zip, source included (Hobbes) which can search for much more, eg
which (v2.1.4, 2002.06.26) for OS/2, from Newtware 8:2
Usage: which.exe [options] [cmd ... ]
Options:
(default behavior is to find location of program executed as "cmd")
-1 show the first match from all cmd args; display nothing if not found
-a list all matches (With -1, list all first matches of cmd args)
-b search directories in BOOKSHELF for book (.inf and .pdf) files
-d search directories in DPATH for data files
-e search directories in a given env var; Example: -e EPMPATH
-h search directories in HELP for help (.hlp) files
-l search directories in LIBPATH (BEGIN/ENDLIBPATH) for DLLs, LIBs, As
-i search directories in C_INCLUDE_PATH for header (.h) files
-q quiet mode (only returns error code without onscreen messages)
-s show file date/time and size
-u revert to OS/2 style '\' dir separator (default is now Unix style '/')
cmd name to be searched (wildcards can be used)
Examples: -las emx*
which.exe -las foo*.bar (override the default extension)
Note:
See TracTickets
for help on using tickets.

hmm i looked at hobbes, but did not find any of the above mentioned which. if you feel we should provide a better one, please open a request at our github. thanks