The which tool is used to locate a program file in the user's PATH. This which code is from NetBSD's whereis.c and originally from 3.0BSD.
6 lines
233 B
Text
6 lines
233 B
Text
maybe use getprogname() for some platforms?
|
|
|
|
maybe get rid of default execute search path code since it is unused?
|
|
|
|
I didn't install as whereis too, because I have that command
|
|
in my util-linux package. They behave different though.
|