ls: detect terminal color support using glob patterns
commit069961924efb64349914df085d6b0ac76bdaf7ae
authorPádraig Brady <P@draigBrady.com>
Mon, 19 Oct 2015 11:48:49 +0000 (19 12:48 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 19 Oct 2015 11:59:09 +0000 (19 12:59 +0100)
tree85492ac50db1e157f68b2897fee78fc659cfe549
parent31b3db53da0a40afa0e98f4f39592057ccd69029
ls: detect terminal color support using glob patterns

* src/ls.c (know_term_type): Corresponding to commit v8.24-48-gc249a5a,
use fnmatch to inspect the dircolors database.  Noticed due to
failing tests/ls/color-{dtype-dir,term}.sh tests.
src/ls.c