bug#31071: Previous color lost when using --color=always option

2018-04-05 Thread Adrian H
If I use grep --color=always and it matches on a line that is already coloured, it results in the text after the match is reset to the terminal's default colour/attributes. E.g. This just shows a line with some colour/attributes set: $ echo The quick brown fox jumps over the lazy dog | > GRE

bug#31074: Grep -i is slow

2018-04-05 Thread Geoff Kuenning
The -i switch is slow when searching large files. I haven't dug into the code in detail, although it seems that dfa.c is trying to build an intelligent case-agnostic DFA when -i is specified. But that doesn't seem to be working. Perhaps that's because I'm running the UTF-8 character set? Althou