Re: Hi all
[notmuch-archives.git] / 57 / 965085fe7a43230c47f28791cf4adc8cd1809d
1 Return-Path: <tomi.ollila@nixu.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id CA603431FAF\r
6         for <notmuch@notmuchmail.org>; Thu, 19 Jan 2012 03:01:27 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id 0+WTInSWf7fB for <notmuch@notmuchmail.org>;\r
16         Thu, 19 Jan 2012 03:01:27 -0800 (PST)\r
17 Received: from mail-gw3.nixu.fi (mail-gw3.nixu.fi [193.209.237.7])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id F0711431FAE\r
21         for <notmuch@notmuchmail.org>; Thu, 19 Jan 2012 03:01:26 -0800 (PST)\r
22 Received: from pps.filterd (mail-gw3 [127.0.0.1])\r
23         by mail-gw3.nixu.fi (8.14.4/8.14.4) with SMTP id q0JB0if3018632;\r
24         Thu, 19 Jan 2012 13:01:24 +0200\r
25 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
26         by mail-gw3.nixu.fi with ESMTP id 114cs19srb-1\r
27         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
28         Thu, 19 Jan 2012 13:01:23 +0200\r
29 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
30         by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id\r
31         q0JB1NfR001258; Thu, 19 Jan 2012 13:01:23 +0200\r
32 From: Tomi Ollila <tomi.ollila@iki.fi>\r
33 To: David Edmondson <dme@dme.org>\r
34 Subject: Re: [PATCH 2/3] test: Add `test_emacs_expect_t'.\r
35 In-Reply-To: <cunwr8o55yg.fsf@hotblack-desiato.hh.sledj.net>\r
36 References: <87pqei327k.fsf@gmail.com>\r
37         <1326809224-22673-1-git-send-email-dme@dme.org>\r
38         <1326809224-22673-2-git-send-email-dme@dme.org>\r
39         <yf6zkdlawlc.fsf@taco2.nixu.fi>\r
40         <cunzkdk57yj.fsf@hotblack-desiato.hh.sledj.net>\r
41         <yf662g8asp6.fsf@taco2.nixu.fi>\r
42         <cunwr8o55yg.fsf@hotblack-desiato.hh.sledj.net>\r
43 User-Agent: Notmuch/0.11+71~gefa5d6c (http://notmuchmail.org) Emacs/23.3.1\r
44         (i686-pc-linux-gnu)\r
45 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
46         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
47         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
48 Date: Thu, 19 Jan 2012 13:01:23 +0200\r
49 Message-ID: <yf639bcarcs.fsf@taco2.nixu.fi>\r
50 MIME-Version: 1.0\r
51 Content-Type: text/plain; charset=us-ascii\r
52 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7361,\r
53  1.0.211,       0.0.0000        definitions=2012-01-19_05:2012-01-19, 2012-01-19,\r
54         1970-01-01 signatures=0\r
55 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0\r
56         ipscore=0 suspectscore=0\r
57         phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0\r
58         reason=mlx\r
59         scancount=1 engine=6.0.2-1012030000 definitions=main-1201190044\r
60 Cc: notmuch <notmuch@notmuchmail.org>\r
61 X-BeenThere: notmuch@notmuchmail.org\r
62 X-Mailman-Version: 2.1.13\r
63 Precedence: list\r
64 List-Id: "Use and development of the notmuch mail system."\r
65         <notmuch.notmuchmail.org>\r
66 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
68 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
69 List-Post: <mailto:notmuch@notmuchmail.org>\r
70 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
71 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
72         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
73 X-List-Received-Date: Thu, 19 Jan 2012 11:01:27 -0000\r
74 \r
75 On Thu, 19 Jan 2012 10:42:31 +0000, David Edmondson <dme@dme.org> wrote:\r
76 > On Thu, 19 Jan 2012 12:32:21 +0200, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
77 > > Consider the following:\r
78 > > \r
79 > > $ emacsclient --eval '(print "$(echo rm -rf /); echo `date +%Y`")'\r
80 > > "$(echo rm -rf /); echo `date +%Y`"\r
81\r
82 > Or:\r
83\r
84 > $ emacsclient --eval '(shell-command "rm -rf /")'\r
85\r
86 > What's your point?\r
87 \r
88 The point it that you need to quote all shell metacharacters \r
89 (at least '$', '`', ';' and '&') always in your test output for eval:ing...\r
90 Writing to file from elisp test function for comparison is simpler.\r
91 \r
92 Tomi\r