pub fn check_path(
name: &str,
env: &BTreeMap<String, String>,
) -> Result<(), NoPathError>Expand description
Check that the program name of a step whose environment is env can be
looked up: a name with / needs no lookup, and any other name needs a PATH
in env. The check reads only these two values, so it gives the same answer
every time, as search_step_program does for a missing PATH.
ยงErrors
Returns NoPathError when name has no / and env has no PATH.