[lug] grep question
Ed Hill
ed at eh3.com
Tue Jun 12 08:46:33 MDT 2007
On Tue, 12 Jun 2007 07:45:16 -0600 (MDT) Chip Atkinson wrote:
> Ok, here's something to chew on:
>
> chip at chip1:~> echo $LANG
> en_US.UTF-8
> chip at chip1:~> echo abc | grep A
> chip at chip1:~> echo abc | grep a
> abc
> chip at chip1:~> echo abc | grep "[A-Z]"
> abc
> chip at chip1:~> export LANG=C
> chip at chip1:~> echo abc | grep "[A-Z]"
> chip at chip1:~>
>
> The distribution is SuSE enterprise linux. It seems that the LANG
> stuff only affects an expression in set of mini-experiments.
>
> Another thing that is odd is that there are many programs in /usr/bin
> with symlinks to their counterpart in /bin. However, /usr/bin isn't
> a symlink to /bin. I guess SuSE is "non-standard", but I thought it
> was a Red Hat derivative.
Yes, the above looks wrong. I get:
[daggett ~]: cat /etc/redhat-release
Fedora Core release 6 (Zod)
[daggett ~]: echo $LANG
C
[daggett ~]: echo abc | grep "[A-Z]"
[daggett ~]: export LANG="en_US.UTF-8"
[daggett ~]: echo abc | grep "[A-Z]"
[daggett ~]: echo $LANG
en_US.UTF-8
so perhaps you should file a bug in the SLES bugzilla.
Ed
--
Edward H. Hill III, PhD | ed at eh3.com | http://eh3.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20070612/3aa34839/attachment.pgp>
More information about the LUG
mailing list