[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1430931483-28595-2-git-send-email-stephen@networkplumber.org>
Date: Wed, 6 May 2015 09:58:00 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: netdev@...r.kernel.org
Cc: Stephen Hemminger <shemming@...cade.com>
Subject: [PATCH 1/4] ip: document exit code
From: Stephen Hemminger <shemming@...cade.com>
The ip command has always had a consistent exit status
document it so that developers see it.
---
man/man8/ip.8 | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/man/man8/ip.8 b/man/man8/ip.8
index 43ddac9..9574a50 100644
--- a/man/man8/ip.8
+++ b/man/man8/ip.8
@@ -275,6 +275,10 @@ Usually it is
or, if the objects of this class cannot be listed,
.BR "help" .
+.SH EXIT STATUS
+Exit statsis is 0 if command was sucessful, and 1 if there is a syntax error.
+If an error was reported by the kernel exit status is 2.
+
.SH HISTORY
.B ip
was written by Alexey N. Kuznetsov and added in Linux 2.2.
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists