]> granicus.if.org Git - mutt/commitdiff
Make "`...`" work as expected.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 11 Dec 2001 09:25:13 +0000 (09:25 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 11 Dec 2001 09:25:13 +0000 (09:25 +0000)
init.c

diff --git a/init.c b/init.c
index efc5279029855a7dba6b3161e7bbbac122f300d2..b41a2ad4cf7e8d036ac250b2ee0f5baf36f09c1b 100644 (file)
--- a/init.c
+++ b/init.c
@@ -226,6 +226,13 @@ int mutt_extract_token (BUFFER *dest, BUFFER *tok, int flags)
 
       /* if we got output, make a new string consiting of the shell ouptput
         plus whatever else was left on the original line */
+      /* BUT: If this is inside a quoted string, directly add output to 
+       * the token */
+      if (expn.data && qc)
+      {
+       mutt_buffer_addstr (dest, expn.data);
+       FREE (&expn.data);
+      }
       if (expn.data)
       {
        expnlen = mutt_strlen (expn.data);