[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Should Use Straight Single Quote instead of Curved
From: |
G. Branden Robinson |
Subject: |
Re: Should Use Straight Single Quote instead of Curved |
Date: |
Sat, 6 May 2023 11:45:36 -0500 |
At 2023-05-06T08:06:40+0000, Shynur Xie wrote:
> Should Use Straight Single Quote instead of Curved
>
> View this page
> <www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html>
> in browser:
>
> > Character sequences of the form $’string’ are treated as a special
> > kind of single quotes.
>
> should be
>
> > Character sequences of the form $'string' are treated as a special
> > kind of single quotes.
Here's a patch.
diff --git a/doc/bashref.texi b/doc/bashref.texi
index 3263a73c..74548126 100644
--- a/doc/bashref.texi
+++ b/doc/bashref.texi
@@ -475,8 +475,8 @@ @node Top
@subsubsection ANSI-C Quoting
@cindex quoting, ANSI
-Character sequences of the form $'@var{string}' are treated as a special
-kind of single quotes.
+Character sequences of the form @code{$'@var{string}'} are treated as a
+special kind of single quotes.
The sequence expands to @var{string}, with backslash-escaped characters
in @var{string} replaced as specified by the ANSI C standard.
Backslash escape sequences, if present, are decoded as follows:
Regards,
Branden
signature.asc
Description: PGP signature