From 84812b110d6fc09142cf98ab2e06e186e7ce565e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 4 Apr 2005 21:55:06 +0000 Subject: [PATCH] (usage): Mention that some shells provide a built-in function by the same name. --- src/test.c | 3 +++ src/true.c | 12 ++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/test.c b/src/test.c index 18dd00eda4..c28cf87ce9 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 192003b67d..fe43d5441d 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); } -- 2.47.3