From: Willy Tarreau Date: Mon, 26 May 2025 06:34:50 +0000 (+0200) Subject: DOC: config: clarify the wording around single/double quotes X-Git-Tag: v3.2.0~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da8d6d1b2c33520884eddf4b474cb193c560680a;p=thirdparty%2Fhaproxy.git DOC: config: clarify the wording around single/double quotes 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. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index 8fe23d3ed..572675d20 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -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