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

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

Re: Bug in grep?


From: Stepan Kasal
Subject: Re: Bug in grep?
Date: Mon, 30 Sep 2002 09:16:54 +0200
User-agent: Mutt/1.2.5.1i

Hello,

On Fri, Sep 27, 2002 at 08:04:54AM -0700, address@hidden wrote:
> Is this a bug? or a lack of knowledge about regular expressions on my part:

maybe you already discovered that thets a mistake on your side.

Your command is a complicated variant of this:

        echo "1000:62: slon" | grep -Ev "^(1|2|3|1000):(1|2|6|402):"

which prints the line, as the GID 62 is not listed in the regex.

You wonder why the whole thing doesn't work when you omit the last colon.
But such regex can match the substring "1000:6" so the line matches and
is not printed.

Regards,
        Stepan Kasal




reply via email to

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