diff options
Diffstat (limited to 'bin/test/test.1')
-rw-r--r-- | bin/test/test.1 | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/bin/test/test.1 b/bin/test/test.1 index e8448148591..9a29a257bb6 100644 --- a/bin/test/test.1 +++ b/bin/test/test.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: test.1,v 1.6 1998/09/07 16:44:32 aaron Exp $ +.\" $OpenBSD: test.1,v 1.7 1998/09/14 22:14:00 aaron Exp $ .\" $NetBSD: test.1,v 1.6 1995/03/21 07:04:03 cgd Exp $ .\" .\" Copyright (c) 1991, 1993 @@ -55,7 +55,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 @@ -89,7 +91,7 @@ exists and is a regular file. .It Fl g Ar file True if .Ar file -exists and its set group ID flag +exists and its set-group-ID flag is set. .It Fl h Ar file True if @@ -129,7 +131,7 @@ is .It Fl u Ar file True if .Ar file -exists and its set user ID flag +exists and its set-user-ID flag is set. .It Fl w Ar file True if @@ -161,11 +163,11 @@ exists and is a symbolic link. .It Fl O Ar file True if .Ar file -exists and its owner matches the effective user id of this process. +exists and its owner matches the effective user ID of this process. .It Fl G Ar file True if .Ar file -exists and its group matches the effective group id of this process. +exists and its group matches the effective group ID of this process. .It Fl S Ar file True if .Ar file @@ -293,7 +295,7 @@ The grammar is inherently ambiguous. In order to assure a degree of consistency, the cases described in .St -p1003.2 -section D11.2/4.62.4, +section D11.2/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. @@ -303,9 +305,9 @@ The utility exits with one of the following values: .Bl -tag -width Ds .It 0 -expression evaluated to true. +Expression evaluated to true. .It 1 -expression evaluated to false or expression was +Expression evaluated to false or expression was missing. .It >1 An error occurred. |