mirror of
https://github.com/uutils/grep.git
synced 2026-06-10 16:15:11 -07:00
be51c04c08
Two color-handling gaps vs GNU: the 'mt' capability in GREP_COLORS (which sets both the selected- and context-match colors) was ignored, and the deprecated GREP_COLOR variable produced no warning. Handle 'mt', and emit GNU's 'GREP_COLOR=... is deprecated; use GREP_COLORS=mt=...' warning when color output is actually produced. Fixes the GNU testsuite 'color-colors' test.