From e3cb2a0a05e2519d03718d0889df4dd7e551d592 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 4 Apr 2005 22:30:57 +0000 Subject: (usage): Move USAGE_BUILTIN_WARNING to end of --help output. --- src/echo.c | 2 +- src/kill.c | 2 +- src/printf.c | 2 +- src/pwd.c | 2 +- src/stat.c | 2 +- src/test.c | 2 +- src/true.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/echo.c b/src/echo.c index 703704e93..94ef2a5af 100644 --- a/src/echo.c +++ b/src/echo.c @@ -62,7 +62,6 @@ usage (int status) else { printf (_("Usage: %s [OPTION]... [STRING]...\n"), program_name); - printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME); fputs (_("\ Echo the STRING(s) to standard output.\n\ \n\ @@ -95,6 +94,7 @@ If -e is in effect, the following sequences are recognized:\n\ \\t horizontal tab\n\ \\v vertical tab\n\ "), stdout); + printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME); printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); } exit (status); diff --git a/src/kill.c b/src/kill.c index 6b8455ffe..7caaa473d 100644 --- a/src/kill.c +++ b/src/kill.c @@ -97,7 +97,6 @@ Usage: %s [-s SIGNAL | -SIGNAL] PID...\n\ or: %s -t [SIGNAL]...\n\ "), program_name, program_name, program_name); - printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME); fputs (_("\ Send signals to processes, or list signals.\n\ \n\ @@ -118,6 +117,7 @@ SIGNAL may be a signal name like `HUP', or a signal number like `1',\n\ or an exit status of a process terminated by a signal.\n\ PID is an integer; if negative it identifies a process group.\n\ "), stdout); + printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME); printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); } exit (status); diff --git a/src/printf.c b/src/printf.c index 57ff2c50c..32dbd94c5 100644 --- a/src/printf.c +++ b/src/printf.c @@ -101,7 +101,6 @@ Usage: %s FORMAT [ARGUMENT]...\n\ or: %s OPTION\n\ "), program_name, program_name); - printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME); fputs (_("\ Print ARGUMENT(s) according to FORMAT.\n\ \n\ @@ -141,6 +140,7 @@ FORMAT controls the output as in C printf. Interpreted sequences are:\n\ and all C format specifications ending with one of diouxXfeEgGcs, with\n\ ARGUMENTs converted to proper type first. Variable widths are handled.\n\ "), stdout); + printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME); printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); } exit (status); diff --git a/src/pwd.c b/src/pwd.c index f272b688d..2fde1d98c 100644 --- a/src/pwd.c +++ b/src/pwd.c @@ -64,13 +64,13 @@ usage (int status) else { printf (_("Usage: %s [OPTION]\n"), program_name); - printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME); fputs (_("\ Print the full filename of the current working directory.\n\ \n\ "), stdout); fputs (HELP_OPTION_DESCRIPTION, stdout); fputs (VERSION_OPTION_DESCRIPTION, stdout); + printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME); printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); } exit (status); diff --git a/src/stat.c b/src/stat.c index 3b3d3a4d0..e5a7a6907 100644 --- a/src/stat.c +++ b/src/stat.c @@ -678,7 +678,6 @@ usage (int status) else { printf (_("Usage: %s [OPTION] FILE...\n"), program_name); - printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME); fputs (_("\ Display file or file system status.\n\ \n\ @@ -746,6 +745,7 @@ Valid format sequences for file systems:\n\ %t Type in hex\n\ %T Type in human readable form\n\ "), stdout); + printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME); printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); } exit (status); diff --git a/src/test.c b/src/test.c index c28cf87ce..345ea8ac3 100644 --- a/src/test.c +++ b/src/test.c @@ -850,7 +850,6 @@ Usage: test 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\ @@ -926,6 +925,7 @@ Except for -h and -L, all FILE-related tests dereference symbolic links.\n\ Beware that parentheses need to be escaped (e.g., by backslashes) for shells.\n\ INTEGER may also be -l STRING, which evaluates to the length of STRING.\n\ "), stdout); + printf (USAGE_BUILTIN_WARNING, _("test and/or [")); printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); } exit (status); diff --git a/src/true.c b/src/true.c index fe43d5441..855819e07 100644 --- a/src/true.c +++ b/src/true.c @@ -34,7 +34,6 @@ 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\ @@ -44,6 +43,7 @@ These option names may not be abbreviated.\n\ stdout); fputs (HELP_OPTION_DESCRIPTION, stdout); fputs (VERSION_OPTION_DESCRIPTION, stdout); + printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME); printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); exit (status); } -- cgit v1.2.3-54-g00ecf