Re: Hi all
[notmuch-archives.git] / 00 / d338b678e6025f30a053d8cb335944b30641c4
1 Return-Path: <wking@tremily.us>\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 1D678431FD9\r
6         for <notmuch@notmuchmail.org>; Sat, 11 Oct 2014 00:10:13 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.1\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id 1Gbhee-17I03 for <notmuch@notmuchmail.org>;\r
17         Sat, 11 Oct 2014 00:10:03 -0700 (PDT)\r
18 Received: from resqmta-po-04v.sys.comcast.net (resqmta-po-04v.sys.comcast.net\r
19         [96.114.154.163])\r
20         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id 770BA431FD0\r
23         for <notmuch@notmuchmail.org>; Sat, 11 Oct 2014 00:10:03 -0700 (PDT)\r
24 Received: from resomta-po-10v.sys.comcast.net ([96.114.154.234])\r
25         by resqmta-po-04v.sys.comcast.net with comcast\r
26         id 1jA11p00253iAfU01jA1la; Sat, 11 Oct 2014 07:10:01 +0000\r
27 Received: from odin.tremily.us ([24.18.63.50])\r
28         by resomta-po-10v.sys.comcast.net with comcast\r
29         id 1jA01p007152l3L01jA09E; Sat, 11 Oct 2014 07:10:01 +0000\r
30 Received: by odin.tremily.us (Postfix, from userid 1000)\r
31         id 55277141683E; Sat, 11 Oct 2014 00:10:00 -0700 (PDT)\r
32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin;\r
33         t=1413011400; bh=Lu+rhjeDTA4TqgMkrgkXWscUBiRGXKcoRVsbEos3u6I=;\r
34         h=Date:From:To:Cc:Subject:References:In-Reply-To;\r
35         b=LXm53a4x665daG90c7efN/n4+vjFsvg8H73d0JKTKmJJU28s2Y2ogchQcDdasNOS9\r
36         aq6YBYsJOT6tETyZd9TQPlaeMocv3lHxvLuaYyBZlKt/VVHhOO6oTt9kxrySqkXmCQ\r
37         y4QJE6a/TQHN3SEK/uAR07fI9g6kR4mfIUSt4UXQ=\r
38 Date: Sat, 11 Oct 2014 00:10:00 -0700\r
39 From: "W. Trevor King" <wking@tremily.us>\r
40 To: David Bremner <david@tethera.net>\r
41 Subject: Re: [PATCH v2] nmbug: Add an 'init' command\r
42 Message-ID: <20141011071000.GB10926@odin.tremily.us>\r
43 References:\r
44  <eaa9cf1cb3c00c591dc675c0f314ca31909ff74c.1412965476.git.wking@tremily.us>\r
45         <8761frgqbs.fsf@maritornes.cs.unb.ca>\r
46         <20141011051153.GA10926@odin.tremily.us>\r
47         <87siivf5s3.fsf@maritornes.cs.unb.ca>\r
48 MIME-Version: 1.0\r
49 Content-Type: multipart/signed; micalg=pgp-sha1;\r
50         protocol="application/pgp-signature"; boundary="Y7xTucakfITjPcLV"\r
51 Content-Disposition: inline\r
52 In-Reply-To: <87siivf5s3.fsf@maritornes.cs.unb.ca>\r
53 OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8;\r
54         url=http://tremily.us/pubkey.txt\r
55 User-Agent: Mutt/1.5.23 (2014-03-12)\r
56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
57         s=q20140121; t=1413011401;\r
58         bh=9yRIyZJSNfMVocyuC/0H9N42Xvs2Mh5TMrUglzyxehw=;\r
59         h=Received:Received:Received:Date:From:To:Subject:Message-ID:\r
60         MIME-Version:Content-Type;\r
61         b=kBCk7Z6Y1XPwZgNh+2D9wRgdu/JU1XPzMJpmOkRBlIIvuYr6GPND2/IEfbOPZ+E9u\r
62         coBx5e906cmSIgYvcWckdwotrHOWAC9DBWWIidlfGBzeo4ashMKsj64rSK3FhyYYkq\r
63         MaK7/WSX+WNgWRxa1APQO1ASD/2d4CwtrVW84eZGKBs96qtGYdOoea2oDhAejHmv5F\r
64         Thx0lCKTunoz2YGcQRsVvNPBvb5Ofo2nqoFnp2GN0209atci/kFrTIiv7WMaMw1uQj\r
65         OPDm+3OZjrgZUD4v+rgshdF8OQZYQS9IoBRl7SViLZ4ZZLkxUx69UaDaA9D9Jv3Cf2\r
66         HDV/k+qSYQMfw==\r
67 Cc: notmuch@notmuchmail.org\r
68 X-BeenThere: notmuch@notmuchmail.org\r
69 X-Mailman-Version: 2.1.13\r
70 Precedence: list\r
71 List-Id: "Use and development of the notmuch mail system."\r
72         <notmuch.notmuchmail.org>\r
73 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
74         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
75 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
76 List-Post: <mailto:notmuch@notmuchmail.org>\r
77 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
78 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
79         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
80 X-List-Received-Date: Sat, 11 Oct 2014 07:10:13 -0000\r
81 \r
82 \r
83 --Y7xTucakfITjPcLV\r
84 Content-Type: text/plain; charset=utf-8\r
85 Content-Disposition: inline\r
86 Content-Transfer-Encoding: quoted-printable\r
87 \r
88 On Sat, Oct 11, 2014 at 09:02:20AM +0200, David Bremner wrote:\r
89 > W. Trevor King writes:\r
90 > > On Sat, Oct 11, 2014 at 06:53:11AM +0200, David Bremner wrote:\r
91 > >> W. Trevor King writes:\r
92 > >> > but I expect that closing stdin is more portable than the\r
93 > >> > /dev/null path.\r
94 > >>=20\r
95 > >> /dev/null is part of POSIX\r
96 > >\r
97 > > Maybe folks want to use nmbug on Windows or some other crazy\r
98 > > non-POSIX OS?  I don't know how Windows-compatible the rest of\r
99 > > notmuch is (it looks like Xapian can be built with MSYS+mingw or\r
100 > > MSVC [1,2]), and I don't think supporting non-POSIX OSes is worth\r
101 > > a lot of effort, but using stdin instead here is easy ;).\r
102 >=20\r
103 > I have no objection to the code, but I think the comment about\r
104 > portability just causes confusion. As witnessed by this discussion.\r
105 \r
106 I wanted to explain why I wasn't using /dev/null, especially since\r
107 that's what the Perl version used and that phrasing is preserved in\r
108 the current comment:\r
109 \r
110   # magic hash for Git (git hash-object -t blob /dev/null)                 =\r
111       =20\r
112   _EMPTYBLOB =3D 'e69de29bb2d1d6434b8b29ae775ad8c2e48c5391'\r
113 \r
114 So how should I more clearly explain why I prefer stdin to /dev/null?\r
115 Maybe =E2=80=9C=E2=80=A6 is more portable than the /dev/null path (which do=\r
116 esn't exist\r
117 on Windows, for example).=E2=80=9D?\r
118 \r
119 Cheers,\r
120 Trevor\r
121 \r
122 --=20\r
123 This email may be signed or encrypted with GnuPG (http://www.gnupg.org).\r
124 For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy\r
125 \r
126 --Y7xTucakfITjPcLV\r
127 Content-Type: application/pgp-signature; name="signature.asc"\r
128 Content-Description: OpenPGP digital signature\r
129 \r
130 -----BEGIN PGP SIGNATURE-----\r
131 Version: GnuPG v2\r
132 \r
133 iQIcBAEBAgAGBQJUONfAAAoJEG8/JgBt8ol826gP/jQeehj9yd7WVMOF4qr5q/aq\r
134 nq8oUm+vFK6zQQfRLywGWVMO2ITUoNvEm318I7cm0qyP5Z3yrs/CsdKoLuHeyKju\r
135 CEYIj61YMgZ4p3Vhvt9sS4matk65k51ky7WxLEC4DjCQQARVmdndG4PFc5z6V6vY\r
136 IpBaNSeahfUBUAn1acPvBAGeUgTAYTrKR/+qi5pnHBioq8fz55F7Cj0akYK8MrdL\r
137 +ijdNewmHg0Ju4Pk1+z2zPzJC9R+YFwTp3An5gekOS1IjZgYDTxJz7fsUISSpq9y\r
138 m8nRRxhEt2QoxsjRtxZiJm+hhbndIkPxIHE3tJ5tPZVXHU+eg76EX4nNMgCatr6S\r
139 0quz2W80pcoIym8kmKqiRa+4wmesXGcz0bHdeNqPq4/z90oi+J89SZw2xf605F3D\r
140 uEEVp4zfJa77iRRnw22WXZewDjQpjJyTU1nK4SpmHSG+ULJvLpS/f2WCogrYMzyf\r
141 TKuWIfNtcxKt0ydF0it3OFBmRdbo5V+Re5HmDywu8Ynxz2WI7KQbvnCWevCaaP4+\r
142 RhKYRPc7L+1SrJHlh+i2gkvhE5ALM7bIPuOpeD86ynZobJ351zoCcWR4t5Jv2NgS\r
143 /XHZiu1Xv4BgdDR+iqpvQ0+QuyHOWN5FG9TWaWeQqmxA6X0NXe14Ob2tbHjJbA2f\r
144 5WyIiFnS148QsSSNN6CD\r
145 =MCVI\r
146 -----END PGP SIGNATURE-----\r
147 \r
148 --Y7xTucakfITjPcLV--\r