Use standard headers, sort sections.

This commit is contained in:
wiz 2001-12-20 20:05:12 +00:00
parent 6fa1adea30
commit e0ab876efe

View File

@ -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