Re: pass single-quoted arguments to external script

2008-05-13 Thread Steve S
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

pass single-quoted arguments to external script

2008-05-10 Thread Steve S
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

Re: pass single-quoted arguments to external script

2008-05-10 Thread David Champion
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