From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A1E24429E27 for ; Tue, 29 Nov 2011 06:40:29 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.29 X-Spam-Level: X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 da1nR4DxuUuI for ; Tue, 29 Nov 2011 06:40:27 -0800 (PST) Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu [131.215.239.19]) by olra.theworths.org (Postfix) with ESMTP id 09562429E26 for ; Tue, 29 Nov 2011 06:40:27 -0800 (PST) Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1]) by fire-doxen-postvirus (Postfix) with ESMTP id 70D4C328037; Tue, 29 Nov 2011 06:40:24 -0800 (PST) X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new Received: from finestructure.net (dyn-pupin-171-39.dyn.columbia.edu [128.59.171.39]) (Authenticated sender: jrollins) by fire-doxen-submit (Postfix) with ESMTP id 786CE2E50B36; Tue, 29 Nov 2011 06:40:17 -0800 (PST) Received: by finestructure.net (Postfix, from userid 1000) id 8179DBB0; Tue, 29 Nov 2011 06:40:16 -0800 (PST) From: Jameson Graef Rollins To: Dmitry Kurochkin , Tomi Ollila , notmuch@notmuchmail.org Subject: Re: [PATCH 1/3] test: add functions to count how much times notmuch was called In-Reply-To: <87hb1ovsz4.fsf@gmail.com> References: <1322271878-32614-1-git-send-email-dmitry.kurochkin@gmail.com> <1322450895-32523-1-git-send-email-dmitry.kurochkin@gmail.com> <1322450895-32523-2-git-send-email-dmitry.kurochkin@gmail.com> <87hb1ovsz4.fsf@gmail.com> User-Agent: Notmuch/0.10~rc1+25~g719d650 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Tue, 29 Nov 2011 09:40:16 -0500 Message-ID: <87wrajuh4f.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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: Tue, 29 Nov 2011 14:40:29 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, 29 Nov 2011 01:26:39 +0400, Dmitry Kurochkin wrote: > > echo \$((count + 1)) > "$notmuch_counter_state_path" >=20 > I do not think this is really an optimization. And I find expr more > clear than using $(()). I always have troubles remembering "random > special char syntax" (yeah, not a Perl fan :)), prefer human friendly > words. This allows the shell to do the math itself, without calling a subprocess. I agree with Tomi that $(()) is a little cleaner. jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJO1O7QAAoJEO00zqvie6q8UYUP/17RpOvVzqDVKpB+PImdLM4E u/+ZiQ4SOHpn+OQJRFJt7IDomrUFZSwoDOMvPVlQ/NPG0bPgz0VXs0kPvScTQWmF Rdv9MWBX/f7LlUiC+SO9NqIq9hzQDRj10Wp2vcVAUYW8/lZYAw9MmnpzQd2ti2NP eR7SoEHuO55UKrkZ1ZTBxa61uyfFdhXVC3bWoZySnSj2Bc5BPLBVy9bt6DRSWLNj DdPV8mBUptaNTzxtpqd9mBcvGie0nkJLV1ZXYQucaEd4Az/OQHTIGpKv1/BI0YDq g32Su4GlsQ1ZmFrOeY1LJ6Kn2MLkKxJMOH0eDk4yVEH+7u0bHBmyPGSXJjyyUqZR V+xuDLDpam1zTkDN/BCrSfwVJn311B6njUTzLUoVG7ibiYCpEzk8mojghNGlah7W uy98oE2p4EYdouIYuHX25tR4CJrts1Rn7JHcXmv20t5Wy1CPUK+2IF/XGKfE8+Ub FQ906OMv8lg0JGMvmwoNLG4QDEqx7h6sCjypni18w/NskyEiQbPmOOQwsxMWS44h w5aGuaLAOsdQYlMm4UXYBHS+kiQv3JBHqZs8R6w9M51oxSngkub/YQFwdYl49Ls8 ad8Tcfkx0P6waCJ2022reqLm0C/u9wqJWyOuvZVUpfKwuXKAHy4nJrO3wjE3Ir6U Lfi4tFgvVKHh0vxQbnUq =E9wv -----END PGP SIGNATURE----- --=-=-=--