pub fn resolve_program(
program: &OsStr,
current_dir: Option<&Path>,
path: Option<&OsStr>,
) -> Option<PathBuf>Expand description
Resolve program to the file the child’s execvp would execute: a path
with a separator is taken as-is (relative to current_dir when given), a
bare name is searched on path. The result is absolute.