[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in grep regarding
From: |
Eli Zaretskii |
Subject: |
Re: bug in grep regarding |
Date: |
Fri, 13 Jul 2001 10:47:57 +0300 |
> From: Vijay Seshadri <address@hidden>
> Date: Thu, 12 Jul 2001 15:46:16 -0700
>
> Bug report for GNU grep:
> 1. grep version number: 2.4.2
> 2. No patches made(used the binary)
> 3. Machine type, OS etc: Redhat Linux 7.1, Pentium III 996Mhz single
> processor, Linux kernel 2.4.4-2
> 4. No compiling done, used binary directly
> 5. grep -E '[]mz]' test.c
>
> where test.c was
>
> int main()
> {
> fprintf(stdout,"This [goes to standard out\n");
> fprintf(stderr,"This ]goes to standard error\n");
> fprintf(stderr,"This -goes to standard error\n");
> fprintf(stderr,"This ^goes to standard error\n");
> }
>
> OutPut seen:
>
> int main()
>
> Output expected:
>
> int main()
> fprintf(stderr,"This ]goes to standard error\n");
Works for me as expected in Grep 2.4. Perhaps that's some bug
introduced in v2.4.2 (I never liked the idea of having alpha versions
distributed with a shrink-wrapped OS). Or maybe you have some
locale-dependent setting which changes how character classes match.