Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2B70A431FB6 for ; Thu, 21 Feb 2013 04:23:01 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XjtF4rQ2vQFw for ; Thu, 21 Feb 2013 04:22:59 -0800 (PST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by olra.theworths.org (Postfix) with ESMTP id C6FEB431FAE for ; Thu, 21 Feb 2013 04:22:59 -0800 (PST) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id A53AB10014F; Thu, 21 Feb 2013 14:22:42 +0200 (EET) From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [Patch v2 1/4] nmbug: use dump --format=batch-tag In-Reply-To: <87k3q151fx.fsf@zancas.localnet> References: <1361399077-7737-1-git-send-email-david@tethera.net> <1361399077-7737-2-git-send-email-david@tethera.net> <87k3q151fx.fsf@zancas.localnet> User-Agent: Notmuch/0.15.2+41~g0ce9bd4 (http://notmuchmail.org) Emacs/24.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2013 12:23:01 -0000 On Thu, Feb 21 2013, David Bremner wrote: > Tomi Ollila writes: > >> >> This patch series looks good to me (as far as I can understand, I did >> not find the "silly bug" in your previous patch...) >> > > Compare : > > + print $notmuch $A_action.$TAGPREFIX.$pair->{tag}, " -- ", > + 'id:'.$pair->{id}; > > vs. > > + print $notmuch $D_action.$TAGPREFIX.$pair->{tag}, > + 'id:'.$pair->{id}; Ah, ok :) > I obviously did not test that version very well. IIRC that has happened to some other people, too ;( >> Instead of mentioning that "calls are _not_ passed to shell" here, >> that could be briefly mentioned just before system() calls in the >> script -- and that definitely should not be 'At the moment' feature. > > Sure, the "At the moment" is meant to modify "relies". In the next > patch, we stop relying on this feature of Perl. Well, one have to expect the execution to happen one way or another (and arrange quoting accordingly); for example: $ echo; perl -e 'exec q/echo "foobar"/' foobar vs. $ echo; perl -e 'exec qw/echo "foobar"/' "foobar" first gave exec one arg, 'echo "foobar"' and due to "":s perl used sh to execute it, second gave exec list [ 'echo', '"foobar"' ] and therefore echo got foobar with quotes as a command line argument. Anyone interested for more information, see 'perldoc -f exec'. >> the system() function in perl(1) never pass execution through the >> shell in case the args are list more than one arg: > > right. that's what I meant by "is a documented feature of perl's system > function" > > So I think we mean to say the same thing here; but I could I add a > comment in this patch (to delete it in the next). Or maybe reword that > commit message somehow. Yes, the message is the same, just that there should not be need for that.. > d Tomi