I expected this:
nc -l localhost 7000 </dev/null & nc localhost 7000 </etc/profile
nc -l localhost 7000 </etc/profile & nc localhost 7000 </dev/null
to finish after printing my
but both command groups end up getting stuck (both processes in the first case; in the second case, the server finishes but the client does not).
Why don't the commands finish?
Is this a bug in my
nc/Linux (4.15)? I tried it on MacOS and Cygwin and only the Linux commands aren't finishing.