coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

`dircolors` matching should treat `^` like `!`

Open ackerleytng opened this issue 3 years ago • 0 comments

Difference in behavior from GNU dircolors:

$ echo 'TERM [^a]bc\n.term_matching 00;38;5;61' | TERM=abc dircolors -b -
zsh: can't find terminal definition for abc
LS_COLORS='';
export LS_COLORS
$ echo 'TERM [!a]bc\n.term_matching 00;38;5;61' | TERM=abc dircolors -b -
zsh: can't find terminal definition for abc
LS_COLORS='';
export LS_COLORS
$ echo 'TERM [!a]bc\n.term_matching 00;38;5;61' | TERM=abc ~/projects/coreutils/uutils/target/debug/coreutils dircolors -b -
zsh: can't find terminal definition for abc
LS_COLORS='';
export LS_COLORS
$ echo 'TERM [^a]bc\n.term_matching 00;38;5;61' | TERM=abc ~/projects/coreutils/uutils/target/debug/coreutils dircolors -b -
zsh: can't find terminal definition for abc
LS_COLORS='*.term_matching=00;38;5;61:';
export LS_COLORS

I'll work on this!

ackerleytng avatar Jul 31 '22 17:07 ackerleytng