diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-01-16 16:41:59 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-01-16 16:41:59 +0000 |
commit | 6fca4c7c3f16b87ad8b9ffa6564f5654f44ed581 (patch) | |
tree | 1775365203268b35ac39f4ba2e40744174a93e39 /bin/expr | |
parent | 2d7142bf0d3cccc74a0fc8479fa63c795d0d0556 (diff) | |
download | src-6fca4c7c3f16b87ad8b9ffa6564f5654f44ed581.tar.gz src-6fca4c7c3f16b87ad8b9ffa6564f5654f44ed581.zip |
Add the new standard EXIT STATUS section where appropriate.
Sort standard sections in the (documented) preferred order.
Notes
Notes:
svn path=/head/; revision=140353
Diffstat (limited to 'bin/expr')
-rw-r--r-- | bin/expr/expr.1 | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/bin/expr/expr.1 b/bin/expr/expr.1 index 86321779fe3b..56559a137a95 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 , |