Skip to main content

spawn

Function spawn 

Source
fn spawn(cmd: &mut Command) -> Result<(), String>
Expand description

Start it and turn its exit into this command’s.

Taking a Command rather than the line means both failure arms — the child that never started and the child that started and failed — are reachable from a test with true, false and a path that does not exist.