Skip to main content

run_external

Function run_external 

Source
pub fn run_external(
    os: &Windows,
    actor: ActorId,
    cwd: &VirtualPath,
    environment: &Environment,
    name: &str,
    argv: &[String],
    stdin: &mut dyn Input,
    stdout: &mut dyn Output,
    stderr: &mut dyn Output,
) -> Option<ExitStatus>
Expand description

Runs one external command: resolves it through the command table, records the invocation in the process namespace (tasklist observes it), executes it with the given streams, and finishes the record.

Returns None when the name does not resolve; the shell writes its own “not recognized” message with its own phrasing.