Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note to process::arg[s] that args shouldn't be escaped or quoted #78599

Merged
merged 2 commits into from
Nov 1, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions library/std/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,9 @@ impl Command {
///
/// [`args`]: Command::args
///
/// Note that the argument is passed to the program directly as is, so you shouldn't wrap it in quotes
/// or escape special characters the same way you would do that when running the program from terminal.
panstromek marked this conversation as resolved.
Show resolved Hide resolved
///
/// # Examples
///
/// Basic usage:
Expand All @@ -582,6 +585,9 @@ impl Command {
///
/// [`arg`]: Command::arg
///
/// Note that each argument is passed to the program directly as is, so you shouldn't wrap it in quotes
/// or escape special characters the same way you would do that when running the program from terminal directly.
panstromek marked this conversation as resolved.
Show resolved Hide resolved
///
/// # Examples
///
/// Basic usage:
Expand Down