Skip to content

Commit db416b2

Browse files
panstromekm-ou-se
andauthored
Apply suggestions from code review
Co-authored-by: Mara Bos <[email protected]>
1 parent d417bbe commit db416b2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

library/std/src/process.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,10 @@ impl Command {
557557
///
558558
/// [`args`]: Command::args
559559
///
560-
/// Note that the argument is passed to the program directly as is, so you shouldn't wrap it in quotes
561-
/// or escape special characters the same way you would do that when running the program from terminal.
560+
/// Note that the argument is not passed through a shell, but given
561+
/// literally to the program. This means that shell syntax like quotes,
562+
/// escaped characters, word splitting, glob patterns, substitution, etc.
563+
/// have no effect.
562564
///
563565
/// # Examples
564566
///
@@ -585,8 +587,10 @@ impl Command {
585587
///
586588
/// [`arg`]: Command::arg
587589
///
588-
/// Note that each argument is passed to the program directly as is, so you shouldn't wrap it in quotes
589-
/// or escape special characters the same way you would do that when running the program from terminal directly.
590+
/// Note that the arguments are not passed through a shell, but given
591+
/// literally to the program. This means that shell syntax like quotes,
592+
/// escaped characters, word splitting, glob patterns, substitution, etc.
593+
/// have no effect.
590594
///
591595
/// # Examples
592596
///

0 commit comments

Comments
 (0)