[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: egrep confusion
From: |
Paul Eggert |
Subject: |
Re: egrep confusion |
Date: |
Thu, 30 Aug 2001 15:26:55 -0700 (PDT) |
> From: address@hidden (Richard Pixley)
> Date: Thu, 30 Aug 2001 14:48:05 -0700 (PDT)
>
> I don't understand the result of this command when using gnu egrep
> (2.4.2) compiled with gcc-3.0 on sparc-sun-solaris-2.6. The result
> for me is empty, while I'm expecting the line to match. (That's a
> space or tab, btw).
>
> echo '#define S_arpLib_INVALID_ARGUMENT' \
> | /home/rpixley/gnu/src/grep-sendai/src/egrep "^#define[
> ]*S_[^A-Z]"
>
> Any obvious clues I'm overlooking?
Your locale probably thinks that 'a' is in the range 'A'-'Z'.
Try setting LC_ALL='C' in your environment.