summaryrefslogtreecommitdiff
path: root/bin/expr/expr.1
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2001-12-20 20:05:12 +0000
committerwiz <wiz@NetBSD.org>2001-12-20 20:05:12 +0000
commite0ab876efe89ba1dbeeb3882a4be2731d7c8d1a5 (patch)
treef1e3d96dc23a34f1949d41b96e335130bd961fa7 /bin/expr/expr.1
parent6fa1adea30e4e85ed5060ba2cb72b45e11b0c016 (diff)
Use standard headers, sort sections.
Diffstat (limited to 'bin/expr/expr.1')
-rw-r--r--bin/expr/expr.132
1 files changed, 16 insertions, 16 deletions
diff --git a/bin/expr/expr.1 b/bin/expr/expr.1
index 46c1a201e17..b0d5848fcba 100644
--- a/bin/expr/expr.1
+++ b/bin/expr/expr.1
@@ -1,4 +1,4 @@
-.\" $NetBSD: expr.1,v 1.17 2001/10/18 11:00:03 wiz Exp $
+.\" $NetBSD: expr.1,v 1.18 2001/12/20 20:05:12 wiz Exp $
.\"
.\" Written by J.T. Conklin <jtc@netbsd.org>.
.\" Public domain.
@@ -95,6 +95,20 @@ compare operators
.It
.Dq \Z'\*[tty-rn]'|
.El
+.Sh EXIT STATUS
+The
+.Nm
+utility exits with one of the following values:
+.Bl -tag -width Ds -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.
+.It >2
+an error occurred (such as memory allocation failure).
+.El
.Sh EXAMPLES
.Bl -enum
.It
@@ -112,26 +126,12 @@ in variable a.
The following example returns the number of characters in variable a.
.Dl expr $a Li : '.*'
.El
-.Sh EXIT STATUS
-The
-.Nm
-utility exits with one of the following values:
-.Bl -tag -width Ds -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.
-.It >2
-an error occurred (such as memory allocation failure).
-.El
.Sh STANDARDS
The
.Nm
utility conforms to
.St -p1003.2 .
-.Sh AUTHOR
+.Sh AUTHORS
Original implementation was written by
.An J.T. Conklin Aq jtc@netbsd.org .
It was rewritten in