On May 10 17:31, David Champion wrote:
So how do I properly escape the single quotes in the vim args
Personally, as soon as I start having trouble figuring out how to quote
things withing multiple layers of parser, I ditch the headache and
put the command into an external script that
Hi all.
I have some trouble with Mutt's quoting conventions in hooks etc.
At first, what I already have and what works is (a) or (b), which does the
same:
a) send-hook ... set editor=\vim '+/^--[ ]*$' -c 'read some_file' \
b) send-hook ... 'set editor=vim '\''+/^--[ ]*$'\'' -c '\''read
So how do I properly escape the single quotes in the vim args
Personally, as soon as I start having trouble figuring out how to quote
things withing multiple layers of parser, I ditch the headache and
put the command into an external script that accepts only the minimum
arguments from mutt