From ffd9fd4c0ed5972f009b7bef7962e63c16e7bd44 Mon Sep 17 00:00:00 2001 From: ru Date: Sun, 16 Jan 2005 16:41:59 +0000 Subject: Add the new standard EXIT STATUS section where appropriate. Sort standard sections in the (documented) preferred order. --- bin/expr/expr.1 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'bin/expr') diff --git a/bin/expr/expr.1 b/bin/expr/expr.1 index 8632177..56559a1 100644 --- a/bin/expr/expr.1 +++ b/bin/expr/expr.1 @@ -180,6 +180,18 @@ also enables compatibility mode. .It Ev EXPR_COMPAT If set, enables compatibility mode. .El +.Sh EXIT STATUS +The +.Nm +utility exits with one of the following values: +.Bl -tag -width indent -compact +.It 0 +the expression is neither an empty string nor 0. +.It 1 +the expression is an empty string or 0. +.It 2 +the expression is invalid. +.El .Sh EXAMPLES .Bl -bullet .It @@ -236,18 +248,6 @@ For portability to older systems, however, a more complicated command is required: .Dl "expr \e( \*qX$a\*q \&: \*q.*\*q \e) - 1" .El -.Sh DIAGNOSTICS -The -.Nm -utility exits with one of the following values: -.Bl -tag -width indent -compact -.It 0 -the expression is neither an empty string nor 0. -.It 1 -the expression is an empty string or 0. -.It 2 -the expression is invalid. -.El .Sh SEE ALSO .Xr sh 1 , .Xr test 1 , -- cgit v1.1