pub fn host_program(program: &str, path_dirs: &[PathBuf]) -> Option<PathBuf>
The first executable named program in path_dirs, canonical: the one execvp would run.
program
path_dirs
execvp