bug#36148: inconsistent behaviour with anchored regex containing back-references

2019-06-09 Thread g1pi
There seems to be a problem with beginning/end-of-line anchors in regex containing back-references: $ grep -V | head -1 grep (GNU grep) 3.1 $ cat words ana deed ill stats Using -x to match whole line works: $ egrep -x '(.?)(.?).?\2\1' words ana deed stats Using explicit anchors emits false po

bug#36367: Potential bug in grep / egrep

2019-06-26 Thread g1pi
Hi Henrik. It's not a bug, and it's described in the manpage: When type is binary, grep may treat non-text bytes as line terminators even without the -z option. This means choosing binary versus text can affect whether a pattern matches a file. For example, when type i