Index of /geminiatari/FILES/UTILITY/WHICH
Name Last modified Size Description
Parent Directory 24-Sep-2006 15:31 -
WHICH.PRG 17-Apr-1989 17:40 8k
This is an ST adaptation of a "which" program somone posted to
net.sources many years ago to replace the agonisingly slow
BSD "which" script with a program. I've used it on our un*x
system for years, and finally decided I couldn't do without
it on the ST any longer.. Anyway, here it is (with source,
its trivial enough.) To use it just say
% which haha
and it'll add in the ".prg" or ".tos" or ".ttp" while checking for the file.
(it'll look for all three.) It works with the Mark Williams C "msh" PATH,
but you can easily modify it for your favourite shell, just change the comma
in the #define for DELIMETERat the top to whatever the delimeter is for
the PATH in your shell.
-ravi
(ravi@mcnc.org)