]> git.notmuchmail.org Git - notmuch/commit
notmuch-emacs-mua: non-forking escape () usage with backslash '\' escape
authorTomi Ollila <tomi.ollila@iki.fi>
Sun, 29 Mar 2015 16:37:34 +0000 (19:37 +0300)
committerDavid Bremner <david@tethera.net>
Fri, 3 Apr 2015 00:27:35 +0000 (09:27 +0900)
commit0fa9cf75e51957f775fd74a7ca266e7a8edd7941
tree9122840aaa4f0ea05dba426138082939b34a8670
parent244f8739543dd2f6cde1188074fc4b32272e8446
notmuch-emacs-mua: non-forking escape () usage with backslash '\' escape

Use the printf -v convention to give output variable as argument
to escape () function so no subshell needs to be executed for
escaping input. The '-v' option to escape () is just syntactic
sugar for better understanding.

Also, backslash is now escaped with another backslash for emacs. This
ie especially important at the end of string.

`echo` is no longer used to write escaped output -- it might interpret
the escapes itself.
notmuch-emacs-mua