[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/1.2.5.1i |
Hello,
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\)'
or
egrep '(a|c)'
Thank you for the bug report,
Stepan