Skip to main content

resolve_program

Function resolve_program 

Source
pub fn resolve_program(program: &OsStr, paths: Option<OsString>) -> OsString
Expand description

Resolve a bare program name against paths, a PATH-style list, using the same rules as command_exists: (including PATHEXT on Windows).

Anything that is not a bare name (./tool, C:\bin\tool.exe) and any name that is not found is returned unchanged, so spawning it reports the ordinary not-found error.