pub fn resolve_spawn_program(
program: &OsStr,
child_path: ChildPath<'_>,
cwd: Option<&Path>,
) -> Option<PathBuf>Expand description
Resolve program to the absolute executable path the child would run.
Returns None when no rewrite is needed (absolute program, inherited
PATH with a bare name), when the child’s search is libc-defined (Unset),
or when no candidate exists, leaving the original behavior in place.