From c9b4549c3d26727999d900e5e0fec126520311a8 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Fri, 29 May 2009 07:18:31 +0000 Subject: [PATCH] Add an EXIT STATUS section to the manual page. Currently, nc(1) does not follow sysexits(3), and returns 1 for all error cases. PR: docs/126451 --- contrib/netcat/nc.1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/netcat/nc.1 b/contrib/netcat/nc.1 index cd3507b11d9b..965187418367 100644 --- a/contrib/netcat/nc.1 +++ b/contrib/netcat/nc.1 @@ -445,6 +445,8 @@ The same example again, this time enabling proxy authentication with username if the proxy requires it: .Pp .Dl $ nc -x10.2.3.4:8080 -Xconnect -Pruser host.example.com 42 +.Sh EXIT STATUS +.Ex -std .Sh SEE ALSO .Xr cat 1 , .Xr ssh 1 ,