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
..
2021-01-20 18:46:26 +01:00
2021-06-19 17:49:44 +02:00
2021-01-27 12:18:45 +01:00
2021-07-20 19:00:50 +02:00
2020-10-29 14:44:09 +00:00
2020-10-24 16:42:35 +00:00
2017-10-31 00:07:04 +00:00
2020-12-12 02:26:43 +00:00
2021-08-19 06:57:06 +02:00
2020-12-27 22:32:22 +01:00
2017-10-31 00:07:04 +00:00
2020-12-22 21:04:36 -08:00
2017-10-06 08:43:14 +00:00