freebsd-dev/bin/ls
Piotr Pawel Stefaniak ced2dcadcc ls: prevent no-color build from complaining when COLORTERM is non-empty
As 257886 reports, if ls(1) is built with WITHOUT_LS_COLORS="YES", it
issues a warning whenever COLORTERM is non-empty. The warning is not
useful, so I thought to remove it, but as Ed pointed out, we may want
to have a way to determine whether a particular copy of ls has been
compiled with color support or not.

Therefore move the warnx() call to the getopt loop in
a WITHOUT_LS_COLORS build to fire when the user asks for colored output.

PR:		257886
Reported by:	Marko Turk
Reviewed by:	kevans
2021-08-19 21:22:16 +02:00
..
tests
cmp.c
extern.h
ls.1 ls(1): Use \& as an escape character for the ',' option 2020-10-10 13:39:13 +00:00
ls.c ls: prevent no-color build from complaining when COLORTERM is non-empty 2021-08-19 21:22:16 +02:00
ls.h
Makefile
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options
print.c
util.c