]> granicus.if.org Git - neomutt/commitdiff
Add a "backticks in double quotes" example to the manual.
authorKevin McCarthy <kevin@8t8.us>
Tue, 14 May 2019 16:26:38 +0000 (09:26 -0700)
committerRichard Russon <rich@flatcap.org>
Tue, 14 May 2019 16:42:24 +0000 (17:42 +0100)
Co-authored-by: Richard Russon <rich@flatcap.org>
doc/manual.xml.head

index 3896798de8a331821a0ce96df47a5776fbe0942d..2fdb76d694c12c69c2751a647c6ff914bbdf984f 100644 (file)
@@ -3742,6 +3742,19 @@ over several lines"
         <title>Using external command's output in configuration files</title>
         <screen>my_hdr X-Operating-System: `uname -a`</screen>
       </example>
+      <para>
+        To avoid the output of backticks being parsed, place them inside double
+        quotes.  In <xref linkend="ex-backtick-dblquotes"/>, the output of the
+        gpg decryption is assigned directly to $imap_pass, so that special
+        characters in the password (e.g.<quote>'</quote>, <quote>#</quote>,
+        <quote>$</quote>) are not parsed and interpreted specially by neomutt.
+      </para>
+      <example id="ex-backtick-dblquotes">
+        <title>Preventing the output of backticks from being parsed</title>
+<screen>
+set imap_pass="`gpg --batch -q --decrypt ~/.neomutt/account.gpg`"
+</screen>
+      </example>
       <para>
         Both environment variables and NeoMutt variables can be accessed by
         prepending <quote>$</quote> to the name of the variable. For example,