summaryrefslogtreecommitdiffstats
path: root/bin/test
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-12-14 10:42:46 +0000
committerru <ru@FreeBSD.org>2006-12-14 10:42:46 +0000
commitd828ea069054def0683feaaa0ab3b996287edc4e (patch)
tree589ddf52443124e3df9db46706b97dc2a6b3e263 /bin/test
parentb3799e39037f92b535a64ace987d9d95ee8f4c49 (diff)
downloadFreeBSD-src-d828ea069054def0683feaaa0ab3b996287edc4e.zip
FreeBSD-src-d828ea069054def0683feaaa0ab3b996287edc4e.tar.gz
Simplify some markup.
Diffstat (limited to 'bin/test')
-rw-r--r--bin/test/test.166
1 files changed, 34 insertions, 32 deletions
diff --git a/bin/test/test.1 b/bin/test/test.1
index f2649cd..91b95c7 100644
--- a/bin/test/test.1
+++ b/bin/test/test.1
@@ -50,7 +50,9 @@ The
utility evaluates the expression and, if it evaluates
to true, returns a zero (true) exit status; otherwise
it returns 1 (false).
-If there is no expression, test also
+If there is no expression,
+.Nm
+also
returns 1 (false).
.Pp
All operators and flags are separate arguments to the
@@ -187,68 +189,68 @@ True if
.Ar string
is not the null
string.
-.It Ar \&s\&1 Cm \&= Ar \&s\&2
+.It Ar s1 Cm = Ar s2
True if the strings
-.Ar \&s\&1
+.Ar s1
and
-.Ar \&s\&2
+.Ar s2
are identical.
-.It Ar \&s\&1 Cm \&!= Ar \&s\&2
+.It Ar s1 Cm != Ar s2
True if the strings
-.Ar \&s\&1
+.Ar s1
and
-.Ar \&s\&2
+.Ar s2
are not identical.
-.It Ar \&s\&1 Cm \&< Ar \&s\&2
+.It Ar s1 Cm < Ar s2
True if string
-.Ar \&s\&1
+.Ar s1
comes before
-.Ar \&s\&2
+.Ar s2
based on the binary value of their characters.
-.It Ar \&s\&1 Cm \&> Ar \&s\&2
+.It Ar s1 Cm > Ar s2
True if string
-.Ar \&s\&1
+.Ar s1
comes after
-.Ar \&s\&2
+.Ar s2
based on the binary value of their characters.
-.It Ar \&n\&1 Fl \&eq Ar \&n\&2
+.It Ar n1 Fl eq Ar n2
True if the integers
-.Ar \&n\&1
+.Ar n1
and
-.Ar \&n\&2
+.Ar n2
are algebraically
equal.
-.It Ar \&n\&1 Fl \&ne Ar \&n\&2
+.It Ar n1 Fl ne Ar n2
True if the integers
-.Ar \&n\&1
+.Ar n1
and
-.Ar \&n\&2
+.Ar n2
are not
algebraically equal.
-.It Ar \&n\&1 Fl \&gt Ar \&n\&2
+.It Ar n1 Fl gt Ar n2
True if the integer
-.Ar \&n\&1
+.Ar n1
is algebraically
greater than the integer
-.Ar \&n\&2 .
-.It Ar \&n\&1 Fl \&ge Ar \&n\&2
+.Ar n2 .
+.It Ar n1 Fl ge Ar n2
True if the integer
-.Ar \&n\&1
+.Ar n1
is algebraically
greater than or equal to the integer
-.Ar \&n\&2 .
-.It Ar \&n\&1 Fl \&lt Ar \&n\&2
+.Ar n2 .
+.It Ar n1 Fl lt Ar n2
True if the integer
-.Ar \&n\&1
+.Ar n1
is algebraically less
than the integer
-.Ar \&n\&2 .
-.It Ar \&n\&1 Fl \&le Ar \&n\&2
+.Ar n2 .
+.It Ar n1 Fl le Ar n2
True if the integer
-.Ar \&n\&1
+.Ar n1
is algebraically less
than or equal to the integer
-.Ar \&n\&2 .
+.Ar n2 .
.El
.Pp
If
@@ -312,7 +314,7 @@ command semantics.
The
.Nm
utility exits with one of the following values:
-.Bl -tag -width Ds
+.Bl -tag -width indent
.It 0
expression evaluated to true.
.It 1
OpenPOWER on IntegriCloud