Commit ce743da1 authored by Stephen Hemminger's avatar Stephen Hemminger

ip: document exit code

The ip command has always had a consistent exit status
document it so that developers see it.
parent 6c55c8c4
......@@ -245,7 +245,7 @@ Use color output.
.PP
The names of all objects may be written in full or
abbreviated form, for exampe
abbreviated form, for example
.B address
can be abbreviated as
.B addr
......@@ -275,6 +275,10 @@ Usually it is
or, if the objects of this class cannot be listed,
.BR "help" .
.SH EXIT STATUS
Exit status is 0 if command was successful, 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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment