Next: , Previous: , Up: Utility Procedures  


6.1.7.3 which Procedure

Searches the execution path for an executable file binary, like the BSD which utility. This procedure uses the shell environment variable PATH. It returns 0 if the binary is not in the path, or if there is no PATH environment variable. If binary is in the path, it returns the full path to binary.

which{file}

binary

The executable program or shell script to look for.