]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: config: clarify the wording around single/double quotes
authorWilly Tarreau <w@1wt.eu>
Mon, 26 May 2025 06:34:50 +0000 (08:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 May 2025 06:36:33 +0000 (08:36 +0200)
As reported in issue #2327, the wording used in the section about quoting
can be read two ways due to the use of the two types of quotes to protect
each other quote. Better only use the quoting without mixing the two when
mentioning them.

doc/configuration.txt

index 8fe23d3edbd4dc3e4c3b7bf7c83349c47b598f3f..572675d20e9da0e8c7dc315adcbe439701a53c7a 100644 (file)
@@ -698,8 +698,9 @@ anymore, and is not recommended.
 In modern configurations, some arguments require the use of some characters
 that were previously considered as pure delimiters. In order to make this
 possible, HAProxy supports character escaping by prepending a backslash ('\')
-in front of the character to be escaped, weak quoting within double quotes
-('"') and strong quoting within single quotes ("'").
+in front of the character to be escaped, weak quoting with double quotes ("")
+around a piece of text, and strong quoting with single quotes ('') around a
+piece of text.
 
 This is pretty similar to what is done in a number of programming languages and
 very close to what is commonly encountered in Bourne shell. The principle is