diff options
author | Jim Meyering <jim@meyering.net> | 2005-04-04 21:55:06 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-04-04 21:55:06 +0000 |
commit | 84812b110d6fc09142cf98ab2e06e186e7ce565e (patch) | |
tree | bc785595b55eec2eca16bd89e6581a91825e51f0 | |
parent | 97cce6e83ffc4261e8641282b6f4e720a0d5831f (diff) | |
download | coreutils-84812b110d6fc09142cf98ab2e06e186e7ce565e.tar.xz |
(usage): Mention that some shells provide a built-in
function by the same name.
-rw-r--r-- | src/test.c | 3 | ||||
-rw-r--r-- | src/true.c | 12 |
2 files changed, 11 insertions, 4 deletions
diff --git a/src/test.c b/src/test.c index 18dd00eda..c28cf87ce 100644 --- a/src/test.c +++ b/src/test.c @@ -849,6 +849,9 @@ Usage: test EXPRESSION\n\ or: [ EXPRESSION ]\n\ or: [ ]\n\ or: [ OPTION\n\ +"), stdout); + printf (USAGE_BUILTIN_WARNING, _("test and/or [")); + fputs (_("\ Exit with the status determined by EXPRESSION.\n\ \n\ "), stdout); diff --git a/src/true.c b/src/true.c index 192003b67..fe43d5441 100644 --- a/src/true.c +++ b/src/true.c @@ -1,5 +1,5 @@ /* Exit with a status code indicating success. - Copyright (C) 1999-2003 Free Software Foundation, Inc. + Copyright (C) 1999-2003, 2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -32,14 +32,18 @@ usage (int status) printf (_("\ Usage: %s [ignored command line arguments]\n\ or: %s OPTION\n\ +"), + program_name, program_name); + printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME); + fputs (_("\ Exit with a status code indicating success.\n\ \n\ These option names may not be abbreviated.\n\ \n\ "), - program_name, program_name); - fputs (HELP_OPTION_DESCRIPTION, stdout); - fputs (VERSION_OPTION_DESCRIPTION, stdout); + stdout); + fputs (HELP_OPTION_DESCRIPTION, stdout); + fputs (VERSION_OPTION_DESCRIPTION, stdout); printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); exit (status); } |