You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stage_descriptions/quoting-03-yt5.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Here are a few examples illustrating how backslashes behave outside quotes:
12
12
13
13
| Command | Expected Output | Explanation |
14
14
|---------|----------------|-------------|
15
-
|`echo world\ \ \ \ \ \ script`| <codestyle="white-space: pre;">world script</code> | Each `\ ` creates a literal space as part of one argument. |
15
+
|`echo world\ \ \ \ \ \ script`| <codestyle="white-space: pre;">world script</code> | Each <codestyle="white-space: pre;">\ </code> creates a literal space as part of one argument. |
16
16
|`echo before\ after`| <codestyle="white-space: pre;">before after</code> | The backslash preserves the first space literally, but the shell collapses the subsequent unescaped spaces. |
17
17
|`echo test\nexample`|`testnexample`|`\n` becomes just `n`. |
18
18
|`echo hello\\world`|`hello\world`| The first backslash escapes the second, and the result is a single literal backslash in the argument. |
0 commit comments