[Bug 294334] nc(1) doesn't print any error message when connection is refused
Date: Sat, 11 Apr 2026 19:38:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294334
Dag-Erling Smørgrav <des@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |Works As Intended
CC| |des@FreeBSD.org
Status|New |Closed
--- Comment #1 from Dag-Erling Smørgrav <des@FreeBSD.org> ---
This is intentional: netcat is designed to try any number of addresses and
ports until one succeeds (for instance, if you give it a host name which
resolves to multiple addresses) and there is no correct answer to the question
of which error(s) to report in such a scenario: all, or just one? If just one,
which one? What if one is more significant than the others? etc.
Use the -v option if you want explicit error messages for every failed
operation.
--
You are receiving this mail because:
You are the assignee for the bug.