[Top][All Lists]

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

Re: Grep, multiple -e

From: Stepan Kasal
Subject: Re: Grep, multiple -e
Date: Thu, 5 Jun 2003 15:43:54 +0200
User-agent: Mutt/


On Thu, Jun 05, 2003 at 01:35:26PM +0300, Jori Mantysalo wrote:
> address@hidden jm58660]$ echo "abc" | grep -o -e a -e c
> a
> c
> address@hidden jm58660]$ echo "abc" | grep -o -e c -e a
> c

this surely is a bug.  The same bug strikes if you try eg.

        echo abca | grep --color -e a -e c

I hope to fix it soon.

In the meantime, you can specify one combined pattern, as a workaroud:

        grep '\(a\|c\)'
        egrep '(a|c)'

Thank you for the bug report,

reply via email to

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