On Thu, 19 Jan 2012 10:42:31 +0000, David Edmondson <[email protected]> wrote: > On Thu, 19 Jan 2012 12:32:21 +0200, Tomi Ollila <[email protected]> wrote: > > Consider the following: > > > > $ emacsclient --eval '(print "$(echo rm -rf /); echo `date +%Y`")' > > "$(echo rm -rf /); echo `date +%Y`" > > Or: > > $ emacsclient --eval '(shell-command "rm -rf /")' > > What's your point?
The point it that you need to quote all shell metacharacters (at least '$', '`', ';' and '&') always in your test output for eval:ing... Writing to file from elisp test function for comparison is simpler. Tomi _______________________________________________ notmuch mailing list [email protected] http://notmuchmail.org/mailman/listinfo/notmuch
