chickadee » directory-utils » which-command-pathnames

(which-command-pathnames COMMAND-NAME [ENVIRONMENT-VARIABLE]) procedure

Returns the pathnames of COMMAND-NAME in the ENVIRONMENT-VARIABLE where the file exists, or #f when nothing found.

The default ENVIRONMENT-VARIABLE is "PATH".

Uses the platform specific "PATH" environment variable element separator - a #\; for Windows, and a #\: otherwise.