diff options
author | Pádraig Brady <P@draigBrady.com> | 2014-09-18 14:50:47 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2014-09-19 11:24:05 +0100 |
commit | 8e93dc629727140e950a709008f9a17ca461af63 (patch) | |
tree | 73e81ea9f1be3ba95f097a3802dc7fdc750c97b4 /src/system.h | |
parent | 1f2647b8affae8bf6907f790a399041812ddf16e (diff) | |
download | coreutils-8e93dc629727140e950a709008f9a17ca461af63.tar.xz |
doc: output correct --help references with --program-prefix
* 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.
Diffstat (limited to 'src/system.h')
-rw-r--r-- | src/system.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/system.h b/src/system.h index b5bbec2f3..8b3f768d3 100644 --- a/src/system.h +++ b/src/system.h @@ -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" }, |