Hi Francois,

On Fri, 03 Mar 2017 at 17:10:19 +0100, Francois Gouget wrote:
> But does the -q option still do anything at all?

-q0 is the default since 1.89-4, see #502188.  From debian/Changelog:

    Quit immediately after EOF if -q is not given (i.e. make the default
    equivalent to -q 0). This is the standard upstream behavior and what
    other Linux distributions use. It is different from
    netcat-traditional, but compatibility with other versions of OpenBSD
    netcat is more important. (Closes: #502188)

Now, -N was introduced by upstream in revision 1.111 with the following
message:

    Don't shutdown nc(1)'s network socket when stdin closes. Matches
    *Hobbit*'s original netcat and GNU netcat; revert to old behaviour
    with the new -N flag if needed. After much discussion with otto
    deraadt tedu and Martin Pelikan.

So I propose to revert our default for -q and make -q0 an alias for -N.
This would increase compatibility with GNU netcat and with upstream, at
the expense of older OpenBSD netcat (but that seems to be upstream's
intention.)  I'll sleep over it and — unless someone objects — push a
change over the weekend.

-- 
Guilhem.

Reply via email to