-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Show that Command can be reused and remodified #53264
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
That's pretty cool, thanks! @bors: r+ rollup |
📌 Commit 678676c7562ac9b0402d5509dd7148178d56b051 has been approved by |
@bors r- (It hasn't gone through the test suite locally, and I don't want to break the rollup) |
@Havvy: 🔑 Insufficient privileges: Not in reviewers |
(please ping me or someone else with r+ rights once CI passed) @bors: r- |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
The prior documentation did not make it clear this was possible.
src/libstd/process.rs
Outdated
/// | ||
/// let mut echo_hello = Command::new("sh"); | ||
/// echo_hello.arg("-c") | ||
/// .arg("echo hello"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix indent (one extra whitespace).
@GuillaumeGomez Awaiting your r+ now. |
Thanks! @bors: r+ rollup |
📌 Commit 0070b46 has been approved by |
🌲 The tree is currently closed for pull requests below priority 10, this pull request will be tested once the tree is reopened |
Show that Command can be reused and remodified The prior documentation did not make it clear this was possible. I wanted to make the `list_dir` example work on Windows, but I don't know if passing "/" will error or show the root of the current volume (e.g. `C:`).
Show that Command can be reused and remodified The prior documentation did not make it clear this was possible. I wanted to make the `list_dir` example work on Windows, but I don't know if passing "/" will error or show the root of the current volume (e.g. `C:`). r? @GuillaumeGomez
Rollup of 15 pull requests Successful merges: - #52955 (Update compiler test documentation) - #53019 (Don't collect() when size_hint is useless) - #53025 (Consider changing assert! to debug_assert! when it calls visit_with) - #53059 (Remove explicit returns where unnecessary) - #53165 ( Add aarch64-unknown-netbsd target) - #53210 (Deny future duplication of rustc-ap-syntax) - #53223 (A few cleanups for rustc_data_structures) - #53230 ([nll] enable feature(nll) on various crates for bootstrap: part 4) - #53231 (Add let keyword doc) - #53240 (Add individual documentation for <integer>`.swap_bytes`/.`reverse_bits`) - #53253 (Remove unwanted console log) - #53264 (Show that Command can be reused and remodified) - #53267 (Fix styles) - #53273 (Add links to std::char::REPLACEMENT_CHARACTER from docs.) - #53283 (wherein we suggest float for integer literals where a float was expected) Failed merges: r? @ghost
The prior documentation did not make it clear this was possible.
I wanted to make the
list_dir
example work on Windows, but I don't know if passing "/" will error or show the root of the current volume (e.g.C:
).r? @GuillaumeGomez