]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: output correct --help references with --program-prefix
authorPádraig Brady <P@draigBrady.com>
Thu, 18 Sep 2014 13:50:47 +0000 (14:50 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 19 Sep 2014 10:24:05 +0000 (11:24 +0100)
* src/system.h (emit_ancillary_info): Take the invariant PROGRAM_NAME
as a parameter, so that consistent references are made to online docs
and texinfo nodes, when a --program-prefix is in place.  Note the
man pages don't need this fix as they're generated before the program
prefix is used.
* NEWS: Mention the improvements in references to online documentation.

99 files changed:
NEWS
src/base64.c
src/basename.c
src/cat.c
src/chcon.c
src/chgrp.c
src/chmod.c
src/chown.c
src/chroot.c
src/cksum.c
src/comm.c
src/coreutils.c
src/cp.c
src/csplit.c
src/cut.c
src/date.c
src/dd.c
src/df.c
src/dircolors.c
src/dirname.c
src/du.c
src/echo.c
src/env.c
src/expand.c
src/expr.c
src/factor.c
src/fmt.c
src/fold.c
src/getlimits.c
src/groups.c
src/head.c
src/hostid.c
src/hostname.c
src/id.c
src/install.c
src/join.c
src/kill.c
src/link.c
src/ln.c
src/logname.c
src/ls.c
src/md5sum.c
src/mkdir.c
src/mkfifo.c
src/mknod.c
src/mktemp.c
src/mv.c
src/nice.c
src/nl.c
src/nohup.c
src/nproc.c
src/numfmt.c
src/od.c
src/paste.c
src/pathchk.c
src/pinky.c
src/pr.c
src/printenv.c
src/printf.c
src/ptx.c
src/pwd.c
src/readlink.c
src/realpath.c
src/rm.c
src/rmdir.c
src/runcon.c
src/seq.c
src/shred.c
src/shuf.c
src/sleep.c
src/sort.c
src/split.c
src/stat.c
src/stdbuf.c
src/stty.c
src/sum.c
src/sync.c
src/system.h
src/tac.c
src/tail.c
src/tee.c
src/test.c
src/timeout.c
src/touch.c
src/tr.c
src/true.c
src/truncate.c
src/tsort.c
src/tty.c
src/uname.c
src/unexpand.c
src/uniq.c
src/unlink.c
src/uptime.c
src/users.c
src/wc.c
src/who.c
src/whoami.c
src/yes.c

diff --git a/NEWS b/NEWS
index ba0d3d7716b57f5d9b751e15f20e6cae605b9446..0908f7b1c45cf9a4a54a318c79bc1e956e21b5b2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,12 @@ GNU coreutils NEWS                                    -*- outline -*-
   --skip-chdir option is specified.
   [bug introduced in coreutils-8.23]
 
+** Improvements
+
+  References from --help and the man pages of utilities have been corrected
+  in various cases, and more direct links to the corresponding online
+  documentation are provided.
+
 
 * Noteworthy changes in release 8.23 (2014-07-18) [stable]
 
index 7b4ffdaebf84f0313967c7b25f464928a1a11de4..cc1e6a76092bc8c6eb74690f0299b287f6be4dc1 100644 (file)
@@ -83,7 +83,7 @@ When decoding, the input may contain newlines in addition to the bytes of\n\
 the formal base64 alphabet.  Use --ignore-garbage to attempt to recover\n\
 from any other non-alphabet bytes in the encoded stream.\n"),
              stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
 
   exit (status);
index 9bd54d5f318a196a1033f51017dfd518e1846f98..d98ad2fdeb246606adf9ffb23b501badeed8a8eb 100644 (file)
@@ -73,7 +73,7 @@ Examples:\n\
   %s -a any/str1 any/str2   -> \"str1\" followed by \"str2\"\n\
 "),
               program_name, program_name, program_name, program_name);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 267864f201908c4f386e952457a26b44c0a55b87..c7bb7e132c36c0fc800973a0eb00ceea12bcb8a6 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
@@ -118,7 +118,7 @@ Examples:\n\
   %s        Copy standard input to standard output.\n\
 "),
               program_name, program_name);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 21375bc6f3d85dccde367f54efeb7a663f215106..675c2b106f674989d364c931318d9642cc02a12b 100644 (file)
@@ -401,7 +401,7 @@ one takes effect.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 8da6a36da841f09d691ea41667b0c3a6ee135591..cec51dbf7de9ca507f9e92d45cb771c36c61e032 100644 (file)
@@ -162,7 +162,7 @@ Examples:\n\
   %s -hR staff /u  Change the group of /u and subfiles to \"staff\".\n\
 "),
               program_name, program_name);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index a37075cb6ba4baeb0f755cc1f4f0c01fb81e64a9..6ad8767e69197e23a4291f7fe5179cac4da1c3c5 100644 (file)
@@ -403,7 +403,7 @@ With --reference, change the mode of each FILE to that of RFILE.\n\
 \n\
 Each MODE is of the form '[ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=][0-7]+'.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 8036d1a8c543ee459afd12e137c85e71a36b044f..e3f931de34dd93c91e6e98ecc63ef5d0353a603b 100644 (file)
@@ -147,7 +147,7 @@ Examples:\n\
   %s -hR root /u    Change the owner of /u and subfiles to \"root\".\n\
 "),
               program_name, program_name, program_name);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 757573a2ea65fa582f9a2a2143b1e44cec5a13af..171ced98a754f3c97eaea947a13999c9b29bee8d 100644 (file)
@@ -211,7 +211,7 @@ Run COMMAND with root directory set to NEWROOT.\n\
 \n\
 If no command is given, run '${SHELL} -i' (default: '/bin/sh -i').\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index baae55ac0310333ace25d18157a115aa4c55727a..bf375969d07bf94d6f5595ca26c521c3da27ce3f 100644 (file)
@@ -271,7 +271,7 @@ Print CRC checksum and byte counts of each FILE.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index b5c6840af2010ad59d13b838d8c4d2d0aee67d8a..ddb739d70850da01f2af43c5cc13861d970c9a6f 100644 (file)
@@ -141,7 +141,7 @@ Examples:\n\
   %s -3 file1 file2  Print lines in file1 not in file2, and vice versa.\n\
 "),
               program_name, program_name);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 57dc784a8e0a9fe48d7667105dc5fe9e378a522c..d841ae015ee5965763ffa3d58436364e7b0719f6 100644 (file)
@@ -84,7 +84,7 @@ Built-in programs:\n"
 \n\
 Use: '%s --coreutils-prog=PROGRAM_NAME --help' for individual program help.\n"),
               program_name);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 60be688b7d70bbc1774ef227cf536b50df89017f..791a7446f1ed5c07626ed36f51b911132f9fadbc 100644 (file)
--- a/src/cp.c
+++ b/src/cp.c
@@ -268,7 +268,7 @@ As a special case, cp makes a backup of SOURCE when the force and backup\n\
 options are given and SOURCE and DEST are the same name for an existing,\n\
 regular file.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index f8062ea550c85a577f04b0f590d639f72dd06c4f..af72d8f67e6f034b5e738ba489c519c593a3926c 100644 (file)
@@ -1516,7 +1516,7 @@ Read standard input if FILE is -.  Each PATTERN may be:\n\
 \n\
 A line OFFSET is a required '+' or '-' followed by a positive integer.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index bdc723b61fa8df2a0d5b246803534b15f59aa795..ca26f24a09409cb4dba5064c0a9be1d9e1642c7f 100644 (file)
--- a/src/cut.c
+++ b/src/cut.c
@@ -217,7 +217,7 @@ Each range is one of:\n\
 \n\
 With no FILE, or when FILE is -, read standard input.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index ba1918f3567b03811e2937e02c28b4fd12771c82..c39aa9a8e3ffc7510c257988f1c287224fcd395d 100644 (file)
@@ -255,7 +255,7 @@ Show the time on the west coast of the US (use tzselect(1) to find TZ)\n\
 Show the local time for 9AM next Friday on the west coast of the US\n\
   $ date --date='TZ=\"America/Los_Angeles\" 09:00 next Fri'\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 71c334cf88609afceaf410f6161d6ebd9cc75a8d..c17f7d8f31b6c7ed64d7d30075155971fa256174 100644 (file)
--- a/src/dd.c
+++ b/src/dd.c
@@ -647,7 +647,7 @@ Options are:\n\
 
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index a7776652b9166dea18eafb0f63ea263092ddeaae..ccb1f5eb62b70198cc525e89f1f111e34edadd24 100644 (file)
--- a/src/df.c
+++ b/src/df.c
@@ -1430,7 +1430,7 @@ FIELD_LIST is a comma-separated list of columns to be included.  Valid\n\
 field names are: 'source', 'fstype', 'itotal', 'iused', 'iavail', 'ipcent',\n\
 'size', 'used', 'avail', 'pcent', 'file' and 'target' (see info page).\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 5544419ac5170ddb7dd43b8cec10306272348739..a6487adad5a4b2d818a2fc799402d224b9344b6e 100644 (file)
@@ -111,7 +111,7 @@ If FILE is specified, read it to determine which colors to use for which\n\
 file types and extensions.  Otherwise, a precompiled database is used.\n\
 For details on the format of these files, run 'dircolors --print-database'.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
 
   exit (status);
index 5a268e1c20cd567272a62aa8eb1797508bf6ae8e..0211050c9c03701325c145d2109a578ab53ff7d1 100644 (file)
@@ -69,7 +69,7 @@ Examples:\n\
   %s stdio.h            -> \".\"\n\
 "),
               program_name, program_name, program_name);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 5466e17f45e6ead6fc6dcdbfa72ce62a112324b4..ba2012059da8155c64fb266dafb59778a5129d88 100644 (file)
--- a/src/du.c
+++ b/src/du.c
@@ -351,7 +351,7 @@ Summarize disk usage of each FILE, recursively for directories.\n\
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
       emit_blocksize_note ("DU");
       emit_size_note ();
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 63b263ed7e0518d209cbb837d40daf1a3c1a490e..70ccb618043bcfa1bc149a06aedc2b833d050811 100644 (file)
@@ -79,7 +79,7 @@ If -e is in effect, the following sequences are recognized:\n\
   \\xHH    byte with hexadecimal value HH (1 to 2 digits)\n\
 "), stdout);
       printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index b776052c69cc68e94db6d29b93a0b34321a5ed67..269c9cd79ea68f7a12640cc8bc92ad1462363055 100644 (file)
--- a/src/env.c
+++ b/src/env.c
@@ -69,7 +69,7 @@ Set each NAME to VALUE in the environment and run COMMAND.\n\
 \n\
 A mere - implies -i.  If no COMMAND, print the resulting environment.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index bbaf0e7fdcfdea7de8a2ef639e3db59946b5eb00..a29414b4bf00aa7aa7f04e96c92642dce14f56d7 100644 (file)
@@ -120,7 +120,7 @@ With no FILE, or when FILE is -, read standard input.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index bbf32519687741263fdceb5bd695311769d243f9..98f52e7923a681bc5cb39e4ce7a2e91853b4a3fd 100644 (file)
@@ -265,7 +265,7 @@ Pattern matches return the string matched between \\( and \\) or null; if\n\
 Exit status is 0 if EXPRESSION is neither null nor 0, 1 if EXPRESSION is null\n\
 or 0, 2 if EXPRESSION is syntactically invalid, and 3 if an error occurred.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index f636e36f1d4e028c219fd9e278dc9f1ecef13f15..c5daf1d3a0be3d9d2d3db3f80d89a795b421468a 100644 (file)
@@ -2447,7 +2447,7 @@ are specified on the command line, read them from standard input.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 3ee04d99a82e0e2ad1ef6c3b1dd299e94cf025c0..f235da9acd4359027d41a07237e5231fbcb9479a 100644 (file)
--- a/src/fmt.c
+++ b/src/fmt.c
@@ -296,7 +296,7 @@ The option -WIDTH is an abbreviated form of --width=DIGITS.\n\
 \n\
 With no FILE, or when FILE is -, read standard input.\n"),
              stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 1f03c2ea674914f490d7e62acfcdfe16abdc48fc..3bc9ba29fa611123e5d776128ef6b62aaeef4968 100644 (file)
@@ -81,7 +81,7 @@ standard output.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 3a7d7e1504074d28355901af6ef3ad86c4f5c1c3..bf6c92198be463a68437430a76af19434291c3bb 100644 (file)
@@ -73,7 +73,7 @@ Output platform dependent limits in a format useful for shell scripts.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index c904f32509e003d4ad34bf520bca4095c5c67407..cce79f545905ce83220742ed319e761b73fc930d 100644 (file)
@@ -58,7 +58,7 @@ the current process (which may differ if the groups database has changed).\n"),
              stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 09bc33d0dcae9a5361f8faa2380231c45e00e93e..d2f1fce60836f2340243aae660619f08d9dceea0 100644 (file)
@@ -134,7 +134,7 @@ K may have a multiplier suffix:\n\
 b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024,\n\
 GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 867181285befa048b63206201d3151422c3546d6..a08a2994dcce232226cf830fafd50e267d8aacdc 100644 (file)
@@ -46,7 +46,7 @@ Print the numeric identifier (in hexadecimal) for the current host.\n\
 "), program_name);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 9ef759863a1cc3fbb331ac9ec75b2c50275f6f0b..216817068158187cb63f334426aca40758205867 100644 (file)
@@ -62,7 +62,7 @@ Print or set the hostname of the current system.\n\
              program_name, program_name);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 33445a0008dd806537e63b624b6d153327458a40..653b8e557de949b8b1b694e5b188ed3125fb0886 100644 (file)
--- a/src/id.c
+++ b/src/id.c
@@ -104,7 +104,7 @@ or (when USER omitted) for the current user.\n\
 \n\
 Without any OPTION, print some useful set of identified information.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index db4ee457d2b156d94802ba342c654cee3f5b6323..43a735d37d17e92d95de34e96585bcb3c7a8e181 100644 (file)
@@ -668,7 +668,7 @@ the VERSION_CONTROL environment variable.  Here are the values:\n\
   existing, nil   numbered if numbered backups exist, simple otherwise\n\
   simple, never   always make simple backups\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 965ab4900291c1b3355a196ab3918542059c104e..4bb27c8d77dc1d676ffb78b067c38c4e04a99a54 100644 (file)
@@ -239,7 +239,7 @@ Note, comparisons honor the rules specified by 'LC_COLLATE'.\n\
 If the input is not sorted and some lines cannot be joined, a\n\
 warning message will be given.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 4ab86a48fdcd48a81c8bef7f6923687fc088d4c7..e25cadf724f28d9a39633df62a4825f5a9cce14e 100644 (file)
@@ -99,7 +99,7 @@ or the 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);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 6f3a297a0b8dddc445f5947e943a70f7e9d23e46..d47cef23ad7af1bd27fbb1c8552d2a83dffe8b33 100644 (file)
@@ -50,7 +50,7 @@ Usage: %s FILE1 FILE2\n\
              stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 5140e92dcd7d162ff812a4dfdde2b76d921bfdc8..ce812cc6176f551a4c97bc178e2a34e17a028158 100644 (file)
--- a/src/ln.c
+++ b/src/ln.c
@@ -452,7 +452,7 @@ the VERSION_CONTROL environment variable.  Here are the values:\n\
 Using -s ignores -L and -P.  Otherwise, the last option specified controls\n\
 behavior when a TARGET is a symbolic link, defaulting to %s.\n\
 "), LINK_FOLLOWS_SYMLINKS ? "-L" : "-P");
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 368c4c9e9c011267e815961126b2e6ad49dfbc6c..e6281ecf63360c63a938e56f9ccbd7fbdb4e1622 100644 (file)
@@ -43,7 +43,7 @@ Print the name of the current user.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 94276b65bcc121d9c6a90fbcde354f3b63b61424..8b5b2cf74aae962320b21f7d3d8a73208beb2778 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -4948,7 +4948,7 @@ Exit status:\n\
  1  if minor problems (e.g., cannot access subdirectory),\n\
  2  if serious trouble (e.g., cannot access command-line argument).\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index cd27e8060d4db3728623c0b0233dd2a047dc2ae4..5167f8b5781d2f76c931ca06009d110275fcb23d 100644 (file)
@@ -210,7 +210,7 @@ should be a former output of this program.  The default mode is to print\n\
 a line with checksum, a character indicating input mode ('*' for binary,\n\
 space for text), and name for each FILE.\n"),
               DIGEST_REFERENCE);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
 
   exit (status);
index 70bca07b5300ec367a626db5e8089351b538e2f3..7b96e1cd7226055abb7eef8c5973c0d4f405b491 100644 (file)
@@ -75,7 +75,7 @@ Create the DIRECTORY(ies), if they do not already exist.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 632472983277fd5a856b93d8e7757958eabe2537..0a611e99e8e1dba1154e35a14fc33908a11e9d6c 100644 (file)
@@ -67,7 +67,7 @@ Create named pipes (FIFOs) with the given NAMEs.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 797e6bbf1d8d12a43af76f66d1e329a206b53534..0298385a0efb0988b230c814c5eb919cca6ddcdb 100644 (file)
@@ -83,7 +83,7 @@ otherwise, as decimal.  TYPE may be:\n\
   p      create a FIFO\n\
 "), stdout);
       printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index d36e502c18fa255f3aeee77fd20f639af8abaefa..00174c74708972ad5d5eb46ee4569a8a9e84ad3b 100644 (file)
@@ -96,7 +96,7 @@ Files are created u+rw, and directories u+rwx, minus umask restrictions.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
 
   exit (status);
index b71d210f31da9cb8ef197ed8a1a1f93c8392d628..6112419e2896f4ba94865ad3e3e2b23fd1eddf6f 100644 (file)
--- a/src/mv.c
+++ b/src/mv.c
@@ -336,7 +336,7 @@ the VERSION_CONTROL environment variable.  Here are the values:\n\
   existing, nil   numbered if numbered backups exist, simple otherwise\n\
   simple, never   always make simple backups\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 91e8f99fe3a816bb48689bccc0f15ff3a081f3eb..985c124240e61b27e476eb8288688fe9505e56e1 100644 (file)
@@ -85,7 +85,7 @@ With no COMMAND, print the current niceness.  Niceness values range from\n\
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
       printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index d45dcbd6c11301eda1e243005a558940a4fa0e42..7fc113442189407da78d4b889f79a13cbf4125b1 100644 (file)
--- a/src/nl.c
+++ b/src/nl.c
@@ -223,7 +223,7 @@ FORMAT is one of:\n\
   rz   right justified, leading zeros\n\
 \n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 13bb045311066254b24d13522dd43be97a72a022..85bd8051f5ed951bf094f403123d26655382ecfe 100644 (file)
@@ -70,7 +70,7 @@ If standard error is a terminal, redirect it to standard output.\n\
 To save output to FILE, use '%s COMMAND > FILE'.\n"),
               program_name);
       printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 44ee483d6b8bc47dfbd96fea1d2653b060610926..e1bc1d0b7ff5d2b572f184d221d7df8d271a41f6 100644 (file)
@@ -67,7 +67,7 @@ which may be less than the number of online processors\n\
 
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index ff2e41d6ecfd74be1752d0cd8fbdf519f94d5215..2ad441f4c76bc20a489aa850e2c86742ff68ca85 100644 (file)
@@ -938,7 +938,7 @@ Examples:\n\
               program_name, program_name, program_name,
               program_name, program_name, program_name,
               program_name, program_name, program_name);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index c32d785aa9a0568fe40f71d40c5dcc2f202215bd..18b16836d1de6b9548ac8e455ed84ba777096d2e 100644 (file)
--- a/src/od.c
+++ b/src/od.c
@@ -414,7 +414,7 @@ BYTES is hex with 0x or 0X prefix, and may have a multiplier suffix:\n\
   M    1024*1024\n\
 and so on for G, T, P, E, Z, Y.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 8f8f465b4bd8209a83cd84d02fb15a11dc6641c3..2ca75d065924c785f3dbb91250123bad09ff6a19 100644 (file)
@@ -451,7 +451,7 @@ With no FILE, or when FILE is -, read standard input.\n\
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
       /* FIXME: add a couple of examples.  */
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 3cb8bef62e5fdc0356082dcbdc2c51f4e145a032..b287864a32c09deb64b8d22d15e04844a5c569be 100644 (file)
@@ -96,7 +96,7 @@ Diagnose invalid or unportable file names.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 154b6aafb74be2167d42b61648d8ca4abdc1d428..4e8a3e15b0d36aebd8ca97393cc00d8c2631bc5b 100644 (file)
@@ -515,7 +515,7 @@ usage (int status)
 A lightweight 'finger' program;  print user information.\n\
 The utmp file will be %s.\n\
 "), UTMP_FILE);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index a3dc9bf1c289a9d800593eb904b2e1b19eba26da..39be8be8ade71ee4c823e52e6df912c0a6851a1d 100644 (file)
--- a/src/pr.c
+++ b/src/pr.c
@@ -2853,7 +2853,7 @@ Paginate or columnate FILE(s) for printing.\n\
 -t is implied if PAGE_LENGTH <= 10.  With no FILE, or when FILE is -, read\n\
 standard input.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 0646c700938e67ad3322801f20a7684cc180484d..20ec2be6735283770fe80ad0ab3f32ea44171bb4 100644 (file)
@@ -72,7 +72,7 @@ If no VARIABLE is specified, print name and value pairs for them all.\n\
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
       printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 3d303be70ae7ef489836515e7fa531ce423b6c2f..4dd70aa65696772f800b9cc9d371ddb46ac6abc8 100644 (file)
@@ -129,7 +129,7 @@ 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);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 39ac5e4b08a92550048c69e1b97da4932c62f7a7..c1429ebc62b70b76bc06e4d0c9be57d904ab2d1e 100644 (file)
--- a/src/ptx.c
+++ b/src/ptx.c
@@ -1858,7 +1858,7 @@ Output a permuted index, including context, of the words in the input files.\n\
 \n\
 With no FILE, or when FILE is -, read standard input.  Default is '-F /'.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 9bbd78743bc53c090ae84388ded284ffc6250cf9..831cc05e8c7f0bc3f78c0dc11eec15a5c914dfa0 100644 (file)
--- a/src/pwd.c
+++ b/src/pwd.c
@@ -68,7 +68,7 @@ Print the full filename of the current working directory.\n\
 If no option is specified, -P is assumed.\n\
 "), stdout);
       printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index d63f07b40578c111d7a59b43abf1098acde021e8..184f8f0d759c0c3da0c8dc33fcca528a6f4b5257 100644 (file)
@@ -85,7 +85,7 @@ usage (int status)
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 930530cd44a3c7fcce33b8e25eb210937e06c21e..38edb9f07b857c915c330b90937aaac4c3fcbf20 100644 (file)
@@ -88,7 +88,7 @@ all but the last component must exist\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 7ab1c07e93cc65c2f80d145bc351d19425842da2..f7adf5b62ee32c75d3627dfc545b16c351af63d5 100644 (file)
--- a/src/rm.c
+++ b/src/rm.c
@@ -180,7 +180,7 @@ Note that if you use rm to remove a file, it might be possible to recover\n\
 some of its contents, given sufficient expertise and/or time.  For greater\n\
 assurance that the contents are truly unrecoverable, consider using shred.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 6bdfb0fc28926f742f12539b1471bd017674942c..961fea85200107849e3b55a01dd0fdb39a06b9e8 100644 (file)
@@ -177,7 +177,7 @@ Remove the DIRECTORY(ies), if they are empty.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index efe83f28c74f509a847b7ae960a3315e0cbfc2e1..e5cf8c7ad12b3368269d84c90b85b12d36071f4f 100644 (file)
@@ -102,7 +102,7 @@ With neither CONTEXT nor COMMAND, print the current security context.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 7943824d1796cc719e1152f25457b9c41e023984..39a3001863438cfe168806053ce71e4a3a0d0475 100644 (file)
--- a/src/seq.c
+++ b/src/seq.c
@@ -98,7 +98,7 @@ FORMAT must be suitable for printing one argument of type 'double';\n\
 it defaults to %.PRECf if FIRST, INCREMENT, and LAST are all fixed point\n\
 decimal numbers with maximum precision PREC, and to %g otherwise.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index d17c870f876929b6b22077a373cf3d4685a14a09..b235b29aebf79ba5620b531dee14f7f97d402702 100644 (file)
@@ -243,7 +243,7 @@ In addition, file system backups and remote mirrors may contain copies\n\
 of the file that cannot be removed, and that will allow a shredded file\n\
 to be recovered later.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 915f7b7a53840d436032e4b527d918d098927bb7..df0092b9025d0d671cce240af3be9253d4646992 100644 (file)
@@ -87,7 +87,7 @@ Write a random permutation of the input lines to standard output.\n\
 \n\
 With no FILE, or when FILE is -, read standard input.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
 
   exit (status);
index 10fd989b50727f2f0c0a42c6a7bea6deb124365b..027546fcc2d71b64e0d7036da768dbd194eda8cd 100644 (file)
@@ -54,7 +54,7 @@ specified by the sum of their values.\n\
               program_name, program_name);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index deb7c3a5bdcafe3cb15185812a687e711ab64a42..2e697ddccece806896c00d5b666c59578819fa98 100644 (file)
@@ -531,7 +531,7 @@ The locale specified by the environment affects sort order.\n\
 Set LC_ALL=C to get the traditional sort order that uses\n\
 native byte values.\n\
 "), stdout );
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
 
   exit (status);
index 36295c42ec556b9cdd7bbd66baed1b25c56077c5..9b238e4508b6e47bcde8e2372b095a24cf28efe1 100644 (file)
@@ -241,7 +241,7 @@ l/K/N   output Kth of N to stdout without splitting lines\n\
 r/N     like 'l' but use round robin distribution\n\
 r/K/N   likewise but only output Kth of N to stdout\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index c78ab70d0cadac7c2285be043595e5d90964ca87..a739ae77bb897a67565c4f151b73264371698d2a 100644 (file)
@@ -1491,7 +1491,7 @@ Valid format sequences for file systems:\n\
   %T   file system type in human readable form\n\
 "), stdout);
       printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index c8398abc680c67c9a41021df74a4aacfae68abc1..d9cf02bf281b05f665c46cbc8b6cf076034d36a6 100644 (file)
@@ -119,7 +119,7 @@ for e.g.) then that will override corresponding settings changed by 'stdbuf'.\n\
 Also some filters (like 'dd' and 'cat' etc.) don't use streams for I/O,\n\
 and are thus unaffected by 'stdbuf' settings.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 4843b9b966e66d67c564af520205f6f5b243712d..9e4c530cbe6f2007a1d738ff83f1dadc3b4440e4 100644 (file)
@@ -732,7 +732,7 @@ prints baud rate, line discipline, and deviations from stty sane.  In\n\
 settings, CHAR is taken literally, or coded as in ^c, 0x37, 0177 or\n\
 127; special values ^- or undef used to disable special characters.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 5c502ceb968b45c06b831b383df26881129bcfad..f7a19f1806e9b8a50b71b51777b089e4152e79ab 100644 (file)
--- a/src/sum.c
+++ b/src/sum.c
@@ -71,7 +71,7 @@ Print checksum and block counts for each FILE.\n\
 \n\
 With no FILE, or when FILE is -, read standard input.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index b706fbe9376032cf5236606d0555421b18219303..17e792e12d2658e82c8aa1d3669f81d7569748a7 100644 (file)
@@ -44,7 +44,7 @@ Force changed blocks to disk, update the super block.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index b5bbec2f3882b998ec5441fdaedc64313f9c4753..8b3f768d31602ace53a6f193c871eb5b058bd004 100644 (file)
@@ -565,10 +565,8 @@ Otherwise, units default to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n\
 }
 
 static inline void
-emit_ancillary_info (void)
+emit_ancillary_info (char const *program)
 {
-  char const *program = last_component (program_name);
-
   struct infomap { char const *program; char const *node; } const infomap[] = {
     { "[", "test invocation" },
     { "coreutils", "Multi-call invocation" },
index ba055a016f1a45e08c5aa122fd9040a2a737b6ea..192dbd3be6a98ffcdb1756a79353da28584b4a65 100644 (file)
--- a/src/tac.c
+++ b/src/tac.c
@@ -148,7 +148,7 @@ With no FILE, or when FILE is -, read standard input.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 7dd3f4a4417f661b3d123a0e6c16ddfbebe41034..f5d2585174318bcc91b548b9ba4bff3d4ed52746 100644 (file)
@@ -321,7 +321,7 @@ track the actual name of the file, not the file descriptor (e.g., log\n\
 rotation).  Use --follow=name in that case.  That causes tail to track the\n\
 named file in a way that accommodates renaming, removal and creation.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 821d825fe5dd1439bd55074a55e322d0dd371550..9144f4f429f936b29f8599a11c3a0effdf76898a 100644 (file)
--- a/src/tee.c
+++ b/src/tee.c
@@ -72,7 +72,7 @@ Copy standard input to each FILE, and also to standard output.\n\
 \n\
 If a FILE is -, copy again to standard output.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 24bcb93c09870e314b7c515762184b1770cd7a9a..cee90ff26047198539fb780c140660106085d3ad 100644 (file)
@@ -791,7 +791,7 @@ NOTE: [ honors the --help and --version options, but test does not.\n\
 test treats each of those as it treats any other nonempty STRING.\n\
 "), stdout);
       printf (USAGE_BUILTIN_WARNING, _("test and/or ["));
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index c4cc07407cce5252d4db161c2c577f3fc54680b3..9501ba8f73680520f9528017fc78b372d5705682 100644 (file)
@@ -266,7 +266,7 @@ is specified, send the TERM signal upon timeout.  The TERM signal kills\n\
 any process that does not block or catch that signal.  It may be necessary\n\
 to use the KILL (9) signal, since this signal cannot be caught, in which\n\
 case the exit status is 128+9 rather than 124.\n"), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index b128e88363f2a4736989d0aa1ea4006f346f4b4e..1f8d8b6f8bf7e78196c88315bfb08ba86ccfd202 100644 (file)
@@ -247,7 +247,7 @@ change the times of the file associated with standard output.\n\
 \n\
 Note that the -d and -t options accept different time-date formats.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 5905a63f00b092939ac67ac12a0e9c65cd62e546..3ceb2e035c8c536cfbbd8ce4243a39d40dff8170 100644 (file)
--- a/src/tr.c
+++ b/src/tr.c
@@ -346,7 +346,7 @@ only be used in pairs to specify case conversion.  -s uses SET1 if not\n\
 translating nor deleting; else squeezing uses SET2 and occurs after\n\
 translation or deletion.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index ea4833a646404ea26cc19648fec1d173d9480305..000819851027980128342692e3dc0289e6c1bd04 100644 (file)
@@ -47,7 +47,7 @@ Usage: %s [ignored command line arguments]\n\
   fputs (HELP_OPTION_DESCRIPTION, stdout);
   fputs (VERSION_OPTION_DESCRIPTION, stdout);
   printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
-  emit_ancillary_info ();
+  emit_ancillary_info (PROGRAM_NAME);
   exit (status);
 }
 
index 44d0b9670b89f53aa3c78f96fe0c84584b8ab1f5..f06668de5d09c98d794adabd96438511a000f174 100644 (file)
@@ -122,7 +122,7 @@ reads as zero bytes.\n\
 SIZE may also be prefixed by one of the following modifying characters:\n\
 '+' extend by, '-' reduce by, '<' at most, '>' at least,\n\
 '/' round down to multiple of, '%' round up to multiple of.\n"), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 8380ce809ec20663e5cec986aedc4ff159c5b248..02e7797bf1e722be772f3055d767aad7dd5aa196 100644 (file)
@@ -87,7 +87,7 @@ With no FILE, or when FILE is -, read standard input.\n\
 "), program_name);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
 
   exit (status);
index f8c255458c6ac8d95f52022c946e35c1adc565ac..d6aed19e634a61c498195d38515ffe4787dee653 100644 (file)
--- a/src/tty.c
+++ b/src/tty.c
@@ -69,7 +69,7 @@ Print the file name of the terminal connected to standard input.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 3cc3cbae58d17c518a0b576a4a35f1fab15cbb13..1ddaa34a2f1c76c94dcef1827e09b54688949343 100644 (file)
@@ -148,7 +148,7 @@ Print machine architecture.\n\
 
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 03c9a2ef3ee15ead6a4610fe242e60504bf08953..e39cb9a854be210ac01bb0b8910fbf3ecb27db9d 100644 (file)
@@ -129,7 +129,7 @@ With no FILE, or when FILE is -, read standard input.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 358d06c63c0e127ea15cc535d887a4c43acfa044..08281b80b1b4826c1e4efc7958b993a929ffe659 100644 (file)
@@ -220,7 +220,7 @@ Note: 'uniq' does not detect repeated lines unless they are adjacent.\n\
 You may want to sort the input first, or use 'sort -u' without 'uniq'.\n\
 Also, comparisons honor the rules specified by 'LC_COLLATE'.\n\
 "), stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index a05aa324e9742067befd33d489d24098c921da5e..c1e282d5fc5a35a0fe11bf0b60e693c6db8e4092 100644 (file)
@@ -49,7 +49,7 @@ Usage: %s FILE\n\
              stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 93931d2331ac8721f456872659fc049fe0793b57..30d6221ea91d93ca71926b9b1011baff2a9d63f7 100644 (file)
@@ -217,7 +217,7 @@ If FILE is not specified, use %s.  %s as FILE is common.\n\
               UTMP_FILE, WTMP_FILE);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index a0dce1912fb38aa4676db6e857b69b0c486c3c06..5ce5e8b677b5709ee022c985588ecbda437de5c8 100644 (file)
@@ -111,7 +111,7 @@ If FILE is not specified, use %s.  %s as FILE is common.\n\
               UTMP_FILE, WTMP_FILE);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 204802543ddd2e054e17e65adea62ca5ccab35c6..1ff007dcffbe3b8fee262f7ca17d52b762731917 100644 (file)
--- a/src/wc.c
+++ b/src/wc.c
@@ -134,7 +134,7 @@ the following order: newline, word, character, byte, maximum line length.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 23e25115668ca43df2238e9d0e9d7b3066448bf4..b86bde6cf8fc0b27d868ab2014a130e7a26dfceb 100644 (file)
--- a/src/who.c
+++ b/src/who.c
@@ -675,7 +675,7 @@ Print information about users who are currently logged in.\n\
 If FILE is not specified, use %s.  %s as FILE is common.\n\
 If ARG1 ARG2 given, -m presumed: 'am i' or 'mom likes' are usual.\n\
 "), UTMP_FILE, WTMP_FILE);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index 5ec0dc1149b27bf839275f65d323e4da21a527ff..3836317b0b749fc816cf431670b1f5f343d53a4d 100644 (file)
@@ -49,7 +49,7 @@ Same as id -un.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }
index e5957b9e963e31c270930fd94963752e0bd90c0e..c950c0521ce2c8a54885cab512a5dd2a0ba13076 100644 (file)
--- a/src/yes.c
+++ b/src/yes.c
@@ -50,7 +50,7 @@ Repeatedly output a line with all specified STRING(s), or 'y'.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      emit_ancillary_info ();
+      emit_ancillary_info (PROGRAM_NAME);
     }
   exit (status);
 }