doc: colorize -> color

Living so close to Hollywood I know that "colorize"
means adding color to something that was already monochrome,
whereas "color" means to give color to something.
Coreutils apps color text instead of colorizing it.
This commit is contained in:
Paul Eggert 2021-12-24 09:47:18 -08:00
parent 1435e8e5c5
commit d5ae6d8120
10 changed files with 13 additions and 13 deletions

2
NEWS
View File

@ -3063,7 +3063,7 @@ GNU coreutils NEWS -*- outline -*-
install accepts a new option --strip-program to specify the program used to
strip binaries.
ls now colorizes files with capabilities if libcap is available
ls now colors names of files with capabilities if libcap is available.
ls -v now uses filevercmp function as sort predicate (instead of strverscmp)

2
cfg.mk
View File

@ -49,7 +49,7 @@ export VERBOSE = yes
# 4914152 9e
export XZ_OPT = -8e
old_NEWS_hash = 4d17651e2318a01687a1f0fdca9177e5
old_NEWS_hash = 612bad626bf28b1847ad0114cb2cd6fe
# Add an exemption for sc_makefile_at_at_check.
_makefile_at_at_check_exceptions = ' && !/^cu_install_prog/ && !/dynamic-dep/'

View File

@ -8109,7 +8109,7 @@ may be omitted, or one of:
@end itemize
Specifying @option{--color} and no @var{when} is equivalent to
@option{--color=always}.
If piping a colorized listing through a pager like @command{less},
If piping a colored listing through a pager like @command{less},
use the pager's @option{-R} option to pass the color codes to the terminal.
@vindex LS_COLORS

View File

@ -9,7 +9,7 @@
# slackware version of dircolors) are recognized but ignored.
# Below are TERM entries, which can be a glob patterns, to match
# against the TERM environment variable to determine if it is colorizable.
# against the TERM environment variable to determine if it is colorable.
TERM Eterm
TERM ansi
TERM *color*
@ -71,7 +71,7 @@ STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable
EXEC 01;32
# List any file extensions like '.gz' or '.tar' that you would like ls
# to colorize below. Put the extension, a space, and the color init string.
# to color below. Put the extension, a space, and the color init string.
# (and any comments you want to add after a '#')
# If you use DOS-style suffixes, you may want to uncomment the following:
@ -80,7 +80,7 @@ EXEC 01;32
#.com 01;32
#.btm 01;32
#.bat 01;32
# Or if you want to colorize scripts even if they do not have the
# Or if you want to color scripts even if they do not have the
# executable bit actually set.
#.sh 01;32
#.csh 01;32

View File

@ -361,7 +361,7 @@ static bool color_symlink_as_referent;
static char const *hostname;
/* mode of appropriate file for colorization */
/* Mode of appropriate file for coloring. */
static mode_t
file_or_link_mode (struct fileinfo const *file)
{
@ -5424,7 +5424,7 @@ Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.\n\
"), stdout);
fputs (_("\
-C list entries by columns\n\
--color[=WHEN] colorize the output; WHEN can be 'always' (default\
--color[=WHEN] color the output; WHEN can be 'always' (default\
\n\
if omitted), 'auto', or 'never'; more info below\
\n\

View File

@ -1,5 +1,5 @@
#!/bin/sh
# Ensure "ls --color" properly colorizes file with capability.
# Ensure "ls --color" properly colors name of file with capability.
# Copyright (C) 2008-2021 Free Software Foundation, Inc.

View File

@ -1,5 +1,5 @@
#!/bin/sh
# Ensure "ls --color" properly colorizes file extensions
# Ensure "ls --color" properly colors file name extensions.
# Copyright (C) 2018-2021 Free Software Foundation, Inc.

View File

@ -36,7 +36,7 @@ touch nocolor || framework_failure_
TCOLORS="no=7:ex=01;32"
# Non coloured files inherit NORMAL attributes
# Uncolored file names inherit NORMAL attributes.
LS_COLORS=$TCOLORS ls -gGU --color exe nocolor | qls >> out || fail=1
LS_COLORS=$TCOLORS ls -xU --color exe nocolor >> out || fail=1
LS_COLORS=$TCOLORS ls -gGU --color nocolor exe | qls >> out || fail=1

View File

@ -1,5 +1,5 @@
#!/bin/sh
# Ensure "ls --color" properly colorizes hard linked files.
# Ensure "ls --color" properly colors names of hard linked files.
# Copyright (C) 2008-2021 Free Software Foundation, Inc.

View File

@ -62,7 +62,7 @@ n_stat2=$(grep -vF '+++' log2 | wc -l) || framework_failure_
test $n_stat1 = $(($n_stat2 - 1)) \
|| { fail=1; head -n30 log*; }
# Check that output is colorized, as requested, too.
# Check that output is colored, as requested, too.
{
printf '\033[0m\033[01;35mlink-to-x\033[0m@\n'
printf '\033[01;32mx\033[0m*\n'