Skip to main content

command_on_path

Function command_on_path 

Source
pub fn command_on_path(cmd: &str) -> bool
Expand description

What: Determine whether a command is available on the Unix PATH.

Input:

  • cmd: Program name or explicit path to inspect.

Output:

  • true when an executable file is found and marked executable.

Details:

  • Same rules as resolve_command_on_path; kept as a convenience for boolean checks.