pub fn resolve_command_on_path(cmd: &str) -> Option<PathBuf>Expand description
What: Resolve an executable on PATH or by explicit path (Unix).
Input:
cmd: Program basename or path containingMAIN_SEPARATOR.
Output:
Some(path)for the first executable match; otherwiseNone.
Details:
- Honour Unix permission bits so a non-executable file on
PATHis not treated as a tool.