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
Enhance description of quoting behavior in course-definition.yml by detailing specific escape sequences and clarifying which cases are covered and which are not.
Copy file name to clipboardExpand all lines: course-definition.yml
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -562,7 +562,7 @@ stages:
562
562
description_md: |-
563
563
In this stage, you'll implement support for quoting with single quotes.
564
564
565
-
Characters enclosed in single quotes are interpreted literally, with no special treatment. Read more about quoting with single quotes [here](https://www.gnu.org/software/bash/manual/bash.html#Single-Quotes).
565
+
Every character within single quotes is interpreted literally, with no special treatment. Read more about quoting with single quotes [here](https://www.gnu.org/software/bash/manual/bash.html#Single-Quotes).
566
566
567
567
### Tests
568
568
@@ -730,7 +730,18 @@ stages:
730
730
description_md: |-
731
731
In this stage, you'll implement support for quoting with backslashes within double quotes.
732
732
733
-
Within double quotes `"`, a backslash escapes the following characters: `\`, `"`, `$`, and a newline. In all other cases, the backslash is treated as a literal character. Read more about quoting with backslashes within double quotes [here](https://www.gnu.org/software/bash/manual/bash.html#Double-Quotes).
733
+
Within double quotes `"`, a backslash escapes the following characters: `"`, `\`, `$`, `` ` ``, or newline. Read more about quoting with backslashes within double quotes [here](https://www.gnu.org/software/bash/manual/bash.html#Double-Quotes).
734
+
735
+
In this stage, we’ll cover:
736
+
737
+
- `\"` → escapes double quote, allowing " to appear literally within the quoted string
738
+
- `\\` → escapes backslash, resultig in a literal \
739
+
740
+
We won’t cover the following cases in this stage:
741
+
742
+
- `\$` → escapes the dollar sign, preventing variable expansion
0 commit comments