Manual Page Search Parameters
mkc_which, locate(1) a program file in the users $PATH environment variable
mlocate, locate(1) find files by name

MKC_WHICH(1) MKC_WHICH(1)

locate a program file in the users $PATH environment variable

mkc_which [-x] name

mkc_which takes a name and looks for the file which would be executed had this name been given as a command. The argument is searched for along the user's PATH.

-x
If name is not found or non-executable, exit status is zero.

0
if the specified command is found and executable
1
if the specified command is nonexistent or not executable
2
if an invalid option is specified

Aleksey Cheusov <vle@gmx.net>
January 27, 2020