#3634: backtick command output is truncated from the hash-mark, like a comment
----------------------+----------------------
  Reporter:  mykhal   |      Owner:  mutt-dev
      Type:  defect   |     Status:  closed
  Priority:  major    |  Milestone:
 Component:  mutt     |    Version:
Resolution:  invalid  |   Keywords:
----------------------+----------------------
Changes (by me):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 mutt parses the output of the bacticks (``) as if it were literally in the
 command line.  So what is happening here is the backticks are replaced and
 the command is parsed as:

 {{{
 set my_x = a#b
 }}}

 If you want to preserve the hash mark (#), you need to make sure the
 backticks output the string in quotes:

 {{{
 set my_x = `echo \'a#b\'`
 }}}

 which becomes

 {{{
 set my_x = 'a#b'
 }}}

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3634#comment:1>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to