Function nix::unistd::execvpe
pub fn execvpe<SA: AsRef<CStr>, SE: AsRef<CStr>>(filename: &CStr, args: &[SA], env: &[SE]) -> Result<Infallible>
The portability is definied by:
#[cfg(any(target_os = "haiku", target_os = "linux", target_os = "openbsd"))]
Documentation
Replace the current process image with a new one and replicate shell PATH
searching behavior (see
execvpe(3)
).
This functions like a combination of execvp(2)
and execve(2)
to pass an
environment and have a search path. See these two for additional
information.