]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(usage): Mention that some shells provide a built-in
authorJim Meyering <jim@meyering.net>
Mon, 4 Apr 2005 21:55:06 +0000 (21:55 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 4 Apr 2005 21:55:06 +0000 (21:55 +0000)
function by the same name.

src/test.c
src/true.c

index 18dd00eda483ead3c1b6182bc28899f83a4c26c3..c28cf87ce9052cafc6f0658741c772ac5c97fc27 100644 (file)
@@ -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);
index 192003b67d3f1ecede0f51e39a4e71dcf71d3bd2..fe43d5441d08d842831e17343c6cb79f1a8b7664 100644 (file)
@@ -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);
 }