X-Git-Url: https://git.saurik.com/apple/shell_cmds.git/blobdiff_plain/e407a76b5d5c20d98a7c128a4f9b6499da2be298..e1a085bab7df5bb0af9b495e350271357a7cd388:/test/test.1 diff --git a/test/test.1 b/test/test.1 index 061189e..44c5ff9 100644 --- a/test/test.1 +++ b/test/test.1 @@ -41,16 +41,16 @@ .Os .Sh NAME .Nm test , -.Nm [ +.Nm \&[ .Nd condition evaluation utility .Sh SYNOPSIS -.Nm test +.Nm .Ar expression -.Nm [ +.Nm \&[ .Ar expression Cm ] .Sh DESCRIPTION The -.Nm test +.Nm utility evaluates the expression and, if it evaluates to true, returns a zero (true) exit status; otherwise it returns 1 (false). @@ -58,10 +58,10 @@ If there is no expression, test 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 expression: +The following primaries are used to construct expressions: .Bl -tag -width Ar .It Fl b Ar file True if @@ -214,11 +214,6 @@ True if string comes after .Ar \&s\&2 based on the ASCII value of their characters. -.It Ar \&s\&1 -True if -.Ar \&s\&1 -is not the null -string. .It Ar \&n\&1 Fl \&eq Ar \&n\&2 True if the integers .Ar \&n\&1 @@ -288,7 +283,7 @@ operator has higher precedence than the operator. .Sh GRAMMAR AMBIGUITY The -.Nm test +.Nm grammar is inherently ambiguous. In order to assure a degree of consistency, the cases described in .St -p1003.2 @@ -298,7 +293,7 @@ standards document. All other cases are subject to the ambiguity in the command semantics. .Sh RETURN VALUES The -.Nm test +.Nm utility exits with one of the following values: .Bl -tag -width Ds .It 0 @@ -311,7 +306,7 @@ An error occurred. .El .Sh STANDARDS The -.Nm test +.Nm utility implements a superset of the .St -p1003.2 specification.