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
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