wincent / vim-clipper

Clipper integration for Vim
BSD 2-Clause "Simplified" License
43 stars 5 forks source link

Netcat hanging on Debian 10 #4

Closed jeduardo closed 3 years ago

jeduardo commented 3 years ago

When yanking a line, the netcat command hangs and vim hangs with it. Running ps -aux, I can see that the -N switch is not being called for the command. It seems to be caused by a change in the nc command help that no longer displays the word "shutdown" in lowercase, but in uppercase instead:

$ nc -h 2>&1 | grep -i shutdown
                -N              Shutdown the network socket after EOF on stdin
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
wincent commented 3 years ago

Thanks for the report, and the PR. Going to merge that, but in the meantime note that you can always supply your own command using clipper#set_invocation() if the autodetection doesn't work.

jeduardo commented 3 years ago

Thanks for the hint, will keep this in mind. Also thanks for merging!