Skip to main content

Module executable

Module executable 

Expand description

Safe host executable resolution for Unix launchers.

A launcher resolved from PATH must not be looked up again after a child process changes its working directory. This module resolves and validates the executable before command construction and returns the canonical path that should be passed to Command::new.

Functionsยง

resolve_executable
Resolve a host executable using the process PATH.
resolve_executable_with_path
Resolve a host executable using an injected list of PATH entries.