diff options
Diffstat (limited to 'bin/test')
-rw-r--r-- | bin/test/test.1 | 8 | ||||
-rw-r--r-- | bin/test/test.c | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/bin/test/test.1 b/bin/test/test.1 index 8a996cd..7b8a84f 100644 --- a/bin/test/test.1 +++ b/bin/test/test.1 @@ -286,6 +286,13 @@ The operator has higher precedence than the .Fl o operator. +.Pp +Some shells may provide a builtin +.Nm +command which is similar or identical to this utility. +Consult the +.Xr builtin 1 +manual page. .Sh GRAMMAR AMBIGUITY The .Nm @@ -310,6 +317,7 @@ missing. An error occurred. .El .Sh SEE ALSO +.Xr builtin 1 , .Xr expr 1 , .Xr sh 1 .Sh STANDARDS diff --git a/bin/test/test.c b/bin/test/test.c index 1d96297..1cd9a11 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -27,6 +27,11 @@ static const char rcsid[] = #include <string.h> #include <unistd.h> +#ifdef SHELL +#define main testcmd +#include "bltin/bltin.h" +#endif + /* test(1) accepts the following grammar: oexpr ::= aexpr | aexpr "-o" oexpr ; aexpr ::= nexpr | nexpr "-a" aexpr ; |