Skip to content

Commit 2708fee

Browse files
authored
Preserve space in backslash space example
1 parent 76b904d commit 2708fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stage_descriptions/quoting-03-yt5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Here are a few examples illustrating how backslashes behave outside quotes:
1212

1313
| Command | Expected Output | Explanation |
1414
|---------|----------------|-------------|
15-
| `echo world\ \ \ \ \ \ script` | <code style="white-space: pre;">world script</code> | Each `\ ` creates a literal space as part of one argument. |
15+
| `echo world\ \ \ \ \ \ script` | <code style="white-space: pre;">world script</code> | Each <code style="white-space: pre;">\ </code> creates a literal space as part of one argument. |
1616
| `echo before\ after` | <code style="white-space: pre;">before after</code> | The backslash preserves the first space literally, but the shell collapses the subsequent unescaped spaces. |
1717
| `echo test\nexample` | `testnexample` | `\n` becomes just `n`. |
1818
| `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

Comments
 (0)