ip: document exit code
The ip command has always had a consistent exit status document it so that developers see it.
This commit is contained in:
parent
6c55c8c461
commit
ce743da171
|
|
@ -245,7 +245,7 @@ Use color output.
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
The names of all objects may be written in full or
|
The names of all objects may be written in full or
|
||||||
abbreviated form, for exampe
|
abbreviated form, for example
|
||||||
.B address
|
.B address
|
||||||
can be abbreviated as
|
can be abbreviated as
|
||||||
.B addr
|
.B addr
|
||||||
|
|
@ -275,6 +275,10 @@ Usually it is
|
||||||
or, if the objects of this class cannot be listed,
|
or, if the objects of this class cannot be listed,
|
||||||
.BR "help" .
|
.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
|
.SH HISTORY
|
||||||
.B ip
|
.B ip
|
||||||
was written by Alexey N. Kuznetsov and added in Linux 2.2.
|
was written by Alexey N. Kuznetsov and added in Linux 2.2.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue