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

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

Re: egrep confusion


From: Paul Jarc
Subject: Re: egrep confusion
Date: Thu, 30 Aug 2001 17:59:36 -0400
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7

address@hidden (Richard Pixley) wrote:
> 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]"

Check your locale ($LANG, $LC_ALL, and in this case, $LC_COLLATE).  In
the C locale, you'd get the behavior you want.  In some others,
letters are ordered as AaBb...Zz, so 'a' is within the range [A-Z].


paul



reply via email to

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