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 ACB8D429E28 for ; Wed, 16 Nov 2011 11:28:42 -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 ctCsH3Bbnl22 for ; Wed, 16 Nov 2011 11:28:42 -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 1F9E4431FD0 for ; Wed, 16 Nov 2011 11:28:42 -0800 (PST) Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1]) by earth-doxen-postvirus (Postfix) with ESMTP id 9025966E01E5; Wed, 16 Nov 2011 11:28:35 -0800 (PST) X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new Received: from finestructure.net (DHCP-123-180.caltech.edu [131.215.123.180]) (Authenticated sender: jrollins) by earth-doxen-submit (Postfix) with ESMTP id AF2C666E0121; Wed, 16 Nov 2011 11:28:28 -0800 (PST) Received: by finestructure.net (Postfix, from userid 1000) id 1B7732A72; Wed, 16 Nov 2011 11:28:29 -0800 (PST) From: Jameson Graef Rollins To: Tomi Ollila , notmuch@notmuchmail.org Subject: Re: [PATCH] test: create TEST_TMPDIR for holding temporary files In-Reply-To: References: User-Agent: Notmuch/0.9+81~gd8cf814 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Wed, 16 Nov 2011 11:28:26 -0800 Message-ID: <87ipmj989x.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: Wed, 16 Nov 2011 19:28:42 -0000 --=-=-= On Wed, 16 Nov 2011 21:09:00 +0200, Tomi Ollila wrote: > +# Note: TEST_TMPDIR *NOT* exported! > +TEST_TMPDIR=$(mktemp -d "${TMPDIR:-/tmp}/notmuch-test-$$.XXXXXX") Hi, Tomi. I don't think you need to do any of the variable gymnastics if you use the mktemp --tempdir option, which uses TMPDIR if set, but falls back to /tmp otherwise. This functionality is in the gnu version of mktemp at least. jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJOxA7aAAoJEO00zqvie6q8obcQAIxfPVe2Z1W2uo96ROP/jcSg JR95wE4oQNttMfUFnpHFRYk3/PZLGMICpAy8v8myHsSiWJh1g7e2/TelOxOsl9l8 sCOqGnUewCBPiQG4vLES+0XKFzNmEwF3Dxmz1nOO9xj6CDSXA45lQO04A+pTFTtG wWAd1LH1ic0QYfxdT4qZAueDJDNq+xGoTlZdOrcvF6KayZw3DSA8yjx1NjSEWOJh VHNCdyGKxvYqewVwyqhosP19lwo7LAOIN68DvFSe8m5ZWzxd6PiMU8qBwequC9o4 7re6eN02Ry9zKLz2FuFOlnLM6ytM6xVrrJdwrfYxUlVa7zwyOmZU2F5h3IC22BlF 6TdPnsH2QTr8KbW5vPXW+j7feXf1WCLsRMeOpyAN0IcQq9D482CHbbfZ82EElsxC 1ByICyzQnFzRZ8yK0vRMp7bzqZ/tPXgbRKpjX5EgfX91uTtKudC6qXFitvwZgECk QiMIMqAJecif1VwsPifPdgQN+HUs2bU8sOeXV+BRmpGCUGqVJLCeIkk3xEp9WfKl IawOJ7BX+6VHQOYYJ+/lYVMLmE1Pc5jVKEQszhNXP/c8UeyZbA2sj6Aq93zRPWkl 0s7dNZqTzRMxeQr9/tOekZ77Er35sY11Qmc7WV/gUrEcW54/k4i1Ar7giHgi6kWJ ClCK6Hf5l/kocGyYslpc =mTI4 -----END PGP SIGNATURE----- --=-=-=--