Skip to main content

command_on_path

Function command_on_path 

Source
pub fn command_on_path(program: &str, path_var: Option<&str>) -> bool
Expand description

Whether program is runnable: an explicit path (contains a separator) that exists, or a bare name found in one of PATH’s directories.