summaryrefslogtreecommitdiffstats
path: root/bin/expr
diff options
context:
space:
mode:
Diffstat (limited to 'bin/expr')
-rw-r--r--bin/expr/expr.124
1 files changed, 12 insertions, 12 deletions
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 ,
OpenPOWER on IntegriCloud