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

From: Jaakko Heinonen <jh_at_saunalahti.fi>
Date: Wed, 18 Jun 2008 08:23:47 +0300
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)

-- 
Jaakko
Received on Wed Jun 18 2008 - 03:43:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:32 UTC