dircolors: align TERM matching behavior with that of GNU dircolors

This commit is contained in:
Ackerley Tng 2022-07-31 10:38:56 -07:00
parent 8c504edfca
commit 1239fc477b
2 changed files with 43 additions and 2 deletions

View file

@ -263,7 +263,7 @@ impl StrUtils for str {
}
fn fnmatch(&self, pat: &str) -> bool {
pat.parse::<glob::Pattern>().unwrap().matches(self)
parse_glob::from_str(pat).unwrap().matches(self)
}
}
@ -276,7 +276,7 @@ enum ParseState {
}
use std::collections::HashMap;
use uucore::format_usage;
use uucore::{format_usage, parse_glob};
fn parse<T>(lines: T, fmt: &OutputFmt, fp: &str) -> Result<String, String>
where