version 1.17, 2001/10/18 11:00:03 |
version 1.18, 2001/12/20 20:05:12 |
Line 95 compare operators |
|
Line 95 compare operators |
|
.It |
.It |
.Dq \Z'\*[tty-rn]'| |
.Dq \Z'\*[tty-rn]'| |
.El |
.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 |
.Sh EXAMPLES |
.Bl -enum |
.Bl -enum |
.It |
.It |
|
|
The following example returns the number of characters in variable a. |
The following example returns the number of characters in variable a. |
.Dl expr $a Li : '.*' |
.Dl expr $a Li : '.*' |
.El |
.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 |
.Sh STANDARDS |
The |
The |
.Nm |
.Nm |
utility conforms to |
utility conforms to |
.St -p1003.2 . |
.St -p1003.2 . |
.Sh AUTHOR |
.Sh AUTHORS |
Original implementation was written by |
Original implementation was written by |
.An J.T. Conklin Aq jtc@netbsd.org . |
.An J.T. Conklin Aq jtc@netbsd.org . |
It was rewritten in |
It was rewritten in |