Follow-up Comment #1, bug #24438 (project grep):

I just ran into this bug as well, and I can offer a little more information.

$ export LANG=en_US.UTF-8
$ grep --version | head -n1
GNU grep 2.5.3
$ echo 'Foo Foo' | grep -i foo
$ echo 'Foo foo' | grep -i foo
Foo foo
$ echo 'foo Foo' | grep -i foo
foo Foo
$ echo 'Foo Foo' | grep -io foo
$ echo 'Foo foo' | grep -io foo
Foo
foo
$ echo 'foo Foo' | grep -io foo
foo
Foo

So it appears that the line has to contain at least one case-sensitive match
in order for any matches to be output at all.  But if it does contain at least
one case-sensitive match, then all case-insensitive matches are output.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?24438>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



Reply via email to