OK, I figured something out, but that only got me to another mystery.
My yesterday's tests were done in an environment with LANG=en_US.UTF-8If testing in environment where LANG is not set, the behaviour is as expected (both egrep -c and egrep -i -c match).
However, the actual command that...