From cbf6d882883fd8fe4aafe19c9b73181638ef709f Mon Sep 17 00:00:00 2001 From: wileyhy <84648683+wileyhy@users.noreply.github.com> Date: Sun, 6 Oct 2024 00:00:27 -0700 Subject: [PATCH] Add a section, "Additional Options," which includes an example of a hex-encoded single quote in a dollar-single quoted string. --- SC1011.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/SC1011.md b/SC1011.md index 650d773..1a5ce74 100644 --- a/SC1011.md +++ b/SC1011.md @@ -21,6 +21,18 @@ When writing a string in single-quotes, you have to make sure that any apostroph Escape them properly (see the correct code) or switch quotes to avoid the problem. + +### Additional options: +```sh +echo '...peoples\ habits.' +...peoples\ habits. +``` +```sh +$ echo $'...peoples\x27 habits.' +...peoples' habits. +``` + + ### Exceptions: None.