Add a section, "Additional Options," which includes an example of a hex-encoded single quote in a dollar-single quoted string.

wileyhy
2024-10-06 00:00:27 -07:00
parent 9f4b1c283d
commit cbf6d88288

@@ -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.