From dc689eba5710d9f607cb5f2bc2bfe944bb9042a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Sat, 12 Feb 2022 18:03:38 +0000 Subject: [PATCH 2/5] doc: ls: reference dircolors(1) from --help * src/ls.c (usage): s/dircolors/dircolors(1)/. * man/ls.x [SEE ALSO]: Reference dircolors(1). Addresses https://bugs.gnu.org/53946 --- man/ls.x | 2 ++ src/ls.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/man/ls.x b/man/ls.x index 4b7e3f46d..83dd4969e 100644 --- a/man/ls.x +++ b/man/ls.x @@ -2,3 +2,5 @@ ls \- list directory contents [DESCRIPTION] .\" Add any additional description here +[SEE ALSO] +dircolors(1) diff --git a/src/ls.c b/src/ls.c index e1d1b85e2..53f80076b 100644 --- a/src/ls.c +++ b/src/ls.c @@ -5609,7 +5609,7 @@ The WHEN argument defaults to 'always' and can also be 'auto' or 'never'.\n\ Using color to distinguish file types is disabled both by default and\n\ with --color=never. With --color=auto, ls emits color codes only when\n\ standard output is connected to a terminal. The LS_COLORS environment\n\ -variable can change the settings. Use the dircolors command to set it.\n\ +variable can change the settings. Use the dircolors(1) command to set it.\n\ "), stdout); fputs (_("\ \n\ -- 2.26.2