std: Implement CommandExt::exec
This commit implements the `exec` function proposed in [RFC 1359][rfc] which is a function on the `CommandExt` trait to execute all parts of a `Command::spawn` without the `fork` on Unix. More details on the function itself can be found in the comments in the commit. [rfc]: https://github.com/rust-lang/rfcs/pull/1359 cc #31398
Showing
src/test/run-pass/command-exec.rs
0 → 100644
想要评论请 注册 或 登录