[PATCH v2] nmbug: Add an 'init' command

David Bremner david at tethera.net
Sat Oct 11 00:02:20 PDT 2014


"W. Trevor King" <wking at tremily.us> writes:

> On Sat, Oct 11, 2014 at 06:53:11AM +0200, David Bremner wrote:
>> W. Trevor King writes:
>> > but I expect that closing stdin is more portable than the /dev/null
>> > path.
>> 
>> /dev/null is part of POSIX
>
> Maybe folks want to use nmbug on Windows or some other crazy non-POSIX
> OS?  I don't know how Windows-compatible the rest of notmuch is (it
> looks like Xapian can be built with MSYS+mingw or MSVC [1,2]), and I
> don't think supporting non-POSIX OSes is worth a lot of effort, but
> using stdin instead here is easy ;).

I have no objection to the code, but I think the comment about
portability just causes confusion. As witnessed by this discussion.

d


More information about the notmuch mailing list