From dbaa8cf124e6a9818a830f0a63d90ff833a6ce0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Mendon=C3=A7a=20Ferreira?= Date: Sat, 29 Aug 2026 14:30:52 -0300 Subject: [PATCH] Update documentation for environment variable syntax (#22026) --- doc/040_backup.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/040_backup.rst b/doc/040_backup.rst index 8b4f2011e..5459e88b3 100644 --- a/doc/040_backup.rst +++ b/doc/040_backup.rst @@ -399,6 +399,9 @@ sign, write ``$$`` to the file - this has to be done even when there's no matching environment variable for the word following a single ``$``. Note that tilde (``~``) is not expanded, instead use the ``$HOME`` or equivalent environment variable (depending on your operating system). +For environment variable names with non-alphanumeric characters, +enclose the name in curly braces (e.g., ``${ProgramFiles(x86)}``). +Without braces, the parser stops at the first non-alphanumeric character. Patterns need to match on complete path components. For example, the pattern ``foo``: