Skip to main content

direct_argv

Function direct_argv 

Source
pub fn direct_argv<'a>(
    body: &'a str,
    path: &OsStr,
) -> Option<(PathBuf, &'a str, Vec<&'a str>)>
Expand description

Plan a direct exec of body against path, or None to use sh.

Returns (resolved_program, program_as_written, args). The second element becomes argv[0], matching what the shell would have passed.