Skip to main content

exec_replace

Function exec_replace 

Source
pub fn exec_replace(bin: &str, args: &[OsString]) -> Error
Expand description

Replace the current process with the given binary and arguments.

Uses CommandExt::exec() so the shell gets a real TTY. On success this function never returns; on failure it returns an error.