Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jun 2008 13:14:45 +0200
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        Jaakko Heinonen <jh@saunalahti.fi>
Cc:        Doug Barton <dougb@FreeBSD.org>, current@FreeBSD.org, Diomidis Spinellis <dds@aueb.gr>, hackers@FreeBSD.org, "Sean C. Farley" <scf@FreeBSD.org>, Max Khon <fjoe@samodelkin.net>
Subject:   Re: CFT: BSD-licensed grep [Fwd: cvs commit:	ports/textproc/bsdgrep Makefile distinfo]
Message-ID:  <485B9125.1000307@FreeBSD.org>
In-Reply-To: <20080618052347.GA1877@a91-153-120-204.elisa-laajakaista.fi>
References:  <485453F2.60507@FreeBSD.org> <4854BC29.3060507@FreeBSD.org> <485807CD.1030601@FreeBSD.org> <20080618052347.GA1877@a91-153-120-204.elisa-laajakaista.fi>

next in thread | previous in thread | raw e-mail | index | archive | help
Jaakko Heinonen escribió:
> On 2008-06-17, Gabor Kovesdan wrote:
>   
>>> egrep: empty (sub)expression
>>>
>>>       
>> I've looked at this and I have a patch with a workaround: 
>> http://kovesdan.org/patches/grep.dougb.diff
>>     
>
> Unfortunately this breaks things. For example:
>
> $ grep -E '(test||test)' /dev/null
> grep: parentheses not balanced
> $ grep -E '(test|\|)' /dev/null
> grep: parentheses not balanced
> $ grep -E '\(|test)' /dev/null
> (should give an error but it hangs)
>   
Ugly enough, but seems to be fixed in my working copy. Thanks for the 
report.

Gabor




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?485B9125.1000307>