Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ANN: 'which' v0.6.1 - A Python GNU-which replacement

0 views
Skip to first unread message

Trent Mick

unread,
Jul 5, 2002, 4:49:54 AM7/5/02
to
Where?

http://starship.python.net/~tmick/


What is 'which'?

GNU which is a common command line app on Unix. There are Windows ports
(for example, the one in the Cygwin distribution), though I find the
ones I have seen to be a little stupid. They don't understand the use of
the PATHEXT environment variable. They don't support the useful '-a'
option to listing all matches on the current PATH.

This which has the following features:

- it is portable (Windows, Linux);
- it understands PATHEXT on Windows;
- it can print all matches on the PATH;
- it can note "near misses" on the PATH (e.g. files that match
but may not, say, have execute permissions); and
- it can be used as a Python module.


What platforms?

Windows and Linux.


Cheers,
Trent

--
Trent Mick
Tre...@ActiveState.com


0 new messages