bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #24438] echo listen=YES | LC_ALL=en_US.UTF-8 grep -i listen=YES #no


From: Matt Whitlock
Subject: [bug #24438] echo listen=YES | LC_ALL=en_US.UTF-8 grep -i listen=YES #not match
Date: Fri, 03 Oct 2008 02:42:40 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.10 (like Gecko) (Gentoo)

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

[Prev in Thread] Current Thread [Next in Thread]