summaryrefslogtreecommitdiff
path: root/src/true.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-04-04 21:55:06 +0000
committerJim Meyering <jim@meyering.net>2005-04-04 21:55:06 +0000
commit84812b110d6fc09142cf98ab2e06e186e7ce565e (patch)
treebc785595b55eec2eca16bd89e6581a91825e51f0 /src/true.c
parent97cce6e83ffc4261e8641282b6f4e720a0d5831f (diff)
downloadcoreutils-84812b110d6fc09142cf98ab2e06e186e7ce565e.tar.xz
(usage): Mention that some shells provide a built-in
function by the same name.
Diffstat (limited to 'src/true.c')
-rw-r--r--src/true.c12
1 files changed, 8 insertions, 4 deletions
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);
}