From: Stephen Hemminger Date: Wed, 6 May 2015 16:47:22 +0000 (-0700) Subject: ip: document exit code X-Git-Tag: v4.1.0~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce743da17109f113adcfc672d905f38d6a89296b;p=thirdparty%2Fiproute2.git ip: document exit code The ip command has always had a consistent exit status document it so that developers see it. --- diff --git a/man/man8/ip.8 b/man/man8/ip.8 index 43ddac913..045414dd5 100644 --- a/man/man8/ip.8 +++ b/man/man8/ip.8 @@ -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.