CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo]

Gabor Kovesdan gabor at FreeBSD.org
Fri Jun 20 11:14:47 UTC 2008


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



More information about the freebsd-hackers mailing list