Module Name: src
Committed By: wiz
Date: Sun Dec 16 17:57:49 UTC 2012
Modified Files:
src/bin/test: test.1
Log Message:
- Remove unneeded consecutive argument in `.Nm' macros;
- rename `GRAMMAR AMBIGUITY' section to `CAVEATS', and move it to
correct location;
- bump date.
>From Bug Hunting.
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/bin/test/test.1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/test/test.1
diff -u src/bin/test/test.1:1.27 src/bin/test/test.1:1.28
--- src/bin/test/test.1:1.27 Tue Nov 10 18:19:46 2009
+++ src/bin/test/test.1 Sun Dec 16 17:57:49 2012
@@ -1,4 +1,4 @@
-.\" $NetBSD: test.1,v 1.27 2009/11/10 18:19:46 wiz Exp $
+.\" $NetBSD: test.1,v 1.28 2012/12/16 17:57:49 wiz Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)test.1 8.1 (Berkeley) 5/31/93
.\"
-.Dd November 10, 2009
+.Dd December 16, 2012
.Dt TEST 1
.Os
.Sh NAME
@@ -40,13 +40,13 @@
.Nm \&[
.Nd condition evaluation utility
.Sh SYNOPSIS
-.Nm test
+.Nm
.Ar expression
.Nm \&[
.Ar expression Cm \&]
.Sh DESCRIPTION
The
-.Nm test
+.Nm
utility evaluates
.Ar expression
and, if it evaluates
@@ -55,12 +55,12 @@ it returns 1 (false).
If
.Ar expression
is not given,
-.Nm test
+.Nm
also
returns 1 (false).
.Pp
All operators and flags are separate arguments to the
-.Nm test
+.Nm
utility.
.Pp
The following primaries are used to construct
@@ -293,19 +293,9 @@ Note that all file tests with the except
and
.Fl L
follow symbolic links and thus evaluate the test for the file pointed at.
-.Sh GRAMMAR AMBIGUITY
-The
-.Nm test
-grammar is inherently ambiguous.
-In order to assure a degree of consistency, the cases described in
-.St -p1003.2
-section 4.62.4,
-are evaluated consistently according to the rules specified in the
-standards document.
-All other cases are subject to the ambiguity in the command semantics.
.Sh EXIT STATUS
The
-.Nm test
+.Nm
utility exits with one of the following values:
.Bl -tag -width Ds
.It 0
@@ -319,7 +309,17 @@ An error occurred.
.El
.Sh STANDARDS
The
-.Nm test
+.Nm
utility implements a superset of the
.St -p1003.2
specification.
+.Sh CAVEATS
+The
+.Nm
+grammar is inherently ambiguous.
+In order to assure a degree of consistency, the cases described in
+.St -p1003.2
+section 4.62.4,
+are evaluated consistently according to the rules specified in the
+standards document.
+All other cases are subject to the ambiguity in the command semantics.