summaryrefslogtreecommitdiff
path: root/src/test.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-09-09 03:53:54 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-09-09 03:53:54 +0000
commit47358fd2de1676be429948aec0c93fb487986cfe (patch)
tree208fbab3b45ba67282867a3a99b7bd61aedce8ac /src/test.c
parentbf5a0f1dcb9fc4825b3fe96a3179f2fcbf5b0ab1 (diff)
downloadcoreutils-47358fd2de1676be429948aec0c93fb487986cfe.tar.xz
(usage): Document "test" (with no args) and "[ ]".
Diffstat (limited to 'src/test.c')
-rw-r--r--src/test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test.c b/src/test.c
index fd7d7e832..49f7f2389 100644
--- a/src/test.c
+++ b/src/test.c
@@ -834,7 +834,9 @@ usage (int status)
{
fputs (_("\
Usage: test EXPRESSION\n\
+ or: test\n\
or: [ EXPRESSION ]\n\
+ or: [ ]\n\
or: [ OPTION\n\
Exit with the status determined by EXPRESSION.\n\
\n\
@@ -843,6 +845,7 @@ Exit with the status determined by EXPRESSION.\n\
fputs (VERSION_OPTION_DESCRIPTION, stdout);
fputs (_("\
\n\
+An omitted EXPRESSION defaults to false. Otherwise,\n\
EXPRESSION is true or false and sets exit status. It is one of:\n\
"), stdout);
fputs (_("\