[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in grep
From: |
Paul Jarc |
Subject: |
Re: Bug in grep |
Date: |
Fri, 03 Oct 2003 13:31:20 -0400 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
address@hidden (Dr. Robert J. Harley) wrote:
>> cat > bla
> a
> A
>> grep '[a-z]' bla
> a
> A
>
> Surely grepping for [a-z] should only find lower-case characters?
It depends on your locale. If your locale sorts characters as
aAbBcC...zZ, then the above results would be correct. You can set
LC_ALL=C in grep's environment to get the behavior you expect.
paul
- Bug in grep, Dr. Robert J. Harley, 2003/10/03
- Re: Bug in grep,
Paul Jarc <=