On Thu, 19 Jan 2012 10:42:31 +0000, David Edmondson <d...@dme.org> wrote:
> On Thu, 19 Jan 2012 12:32:21 +0200, Tomi Ollila <tomi.oll...@iki.fi> 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
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch

Reply via email to