bug-grep
[Top][All Lists]
Advanced

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

[bug #29496] matching file begin and end gives wrong results


From: Paolo Bonzini
Subject: [bug #29496] matching file begin and end gives wrong results
Date: Fri, 09 Apr 2010 14:44:05 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100216 Fedora/3.5.8-1.fc12 Firefox/3.5.8

Update of bug #29496 (project grep):

                  Status:                    None => Need Info              

    _______________________________________________________

Follow-up Comment #1:

A good bug report must include a testcase (your /etc/passwd file in this
case; make up your own testcase if you don't want to give us the file) and a
description of the intended vs. actual results.

I don't see anything weird in the output of the two commands on my system,
though.  Remember that [A-Z] will match lowercase characters (except `a'
actually) in a locale other than the C locale under glibc, since the collation
order for those locales is aAbBcCdD...xXyYzZ.

Try "LC_ALL=C grep ^[A-Z] /etc/passwd" and "LC_ALL=C grep [A-Z]$
/etc/passwd".  If they work, the problem is simply that you were expecting a
different collation order.

    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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