mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
dircolors: align TERM matching behavior with that of GNU dircolors
This commit is contained in:
parent
8c504edfca
commit
1239fc477b
2 changed files with 43 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue