[Bug 211579] Remove socket support in cat(1)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 4 17:26:17 UTC 2016


John Baldwin <jhb at FreeBSD.org> changed:

           What    |Removed                     |Added
                 CC|                            |jhb at FreeBSD.org

--- Comment #5 from John Baldwin <jhb at FreeBSD.org> ---
While 'nc' would seem to the obvious replacement, I haven't yet found a way to
get equivalent functionality.  I use 'nc -kU -l /tmp/sock' to create a socket. 
I can then type into that terminal to store data in netcat's "buffer".  'cat
/tmp/sock' drains whatever data is pending and exits.  'nc -dNU /tmp/sock'
comes close to this except that it will still block if there is no pending data
instead of exiting with null output.  Also, given that existing scripts, etc.
might depend on this feature of cat (given it's been present for so long), it
seems best to just leave well enough alone in this case.

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list