bug-gnu-utils
[Top][All Lists]
Advanced

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

[Fwd: Re: grep bug]


From: Ronny Melz
Subject: [Fwd: Re: grep bug]
Date: Fri, 28 Oct 2005 17:45:20 +0200
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051015)


   Hi Bob!

I am still curious about the weird behaviour of grep. look at this example:
$ echo foo | grep [A-Z]
foo
is explained through LC_COLLATE. but why does
$ echo foo | grep -o [A-Z]
not explain which character actually matched? For the other combinations, it does:
$ echo Foo | grep -o [A-Z]
F
$ echo Foo | grep -o  [AaBbCcDdEeFf]
F
$ echo foo | grep -o  [AaBbCcDdEeFf]
f

cheers,
Ronny
-------- Original Message --------
Subject:        Re: grep bug
Date:   Mon, 24 Oct 2005 02:09:10 +0200
From:   Ronny Melz <address@hidden>
Reply-To:       address@hidden
To:     address@hidden
CC:     Patrick Mairif <address@hidden>
References: <address@hidden> <address@hidden>



  Hi Bob!

Thank you very much for your reply. I didn't expect the collating sequence was changed to something strange like AaBbCc... for an en_* locale; with LC_COLLATE=C it works indeed as expected. Please excuse the inconveniences...

Cheers,
Ronny








reply via email to

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