summaryrefslogtreecommitdiffstats
path: root/bin/expr
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-01-16 16:41:59 +0000
committerru <ru@FreeBSD.org>2005-01-16 16:41:59 +0000
commitffd9fd4c0ed5972f009b7bef7962e63c16e7bd44 (patch)
tree1775365203268b35ac39f4ba2e40744174a93e39 /bin/expr
parentea812ffcf7bd499c17e770d26e4a5656d8d23f57 (diff)
downloadFreeBSD-src-ffd9fd4c0ed5972f009b7bef7962e63c16e7bd44.zip
FreeBSD-src-ffd9fd4c0ed5972f009b7bef7962e63c16e7bd44.tar.gz
Add the new standard EXIT STATUS section where appropriate.
Sort standard sections in the (documented) preferred order.
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