From owner-freebsd-current@FreeBSD.ORG Fri Jun 20 11:14:47 2008 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F37010657B5; Fri, 20 Jun 2008 11:14:47 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from viefep11-int.chello.at (viefep11-int.chello.at [62.179.121.31]) by mx1.freebsd.org (Postfix) with ESMTP id 2515A8FC1B; Fri, 20 Jun 2008 11:14:45 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from [89.134.207.231] by viefep11-int.chello.at (InterMail vM.7.08.02.02 201-2186-121-104-20070414) with ESMTP id <20080620111444.SVRT17452.viefep11-int.chello.at@[89.134.207.231]>; Fri, 20 Jun 2008 13:14:44 +0200 Message-ID: <485B9125.1000307@FreeBSD.org> Date: Fri, 20 Jun 2008 13:14:45 +0200 From: Gabor Kovesdan User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Jaakko Heinonen References: <485453F2.60507@FreeBSD.org> <4854BC29.3060507@FreeBSD.org> <485807CD.1030601@FreeBSD.org> <20080618052347.GA1877@a91-153-120-204.elisa-laajakaista.fi> In-Reply-To: <20080618052347.GA1877@a91-153-120-204.elisa-laajakaista.fi> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: Doug Barton , current@FreeBSD.org, Diomidis Spinellis , hackers@FreeBSD.org, "Sean C. Farley" , Max Khon Subject: Re: CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2008 11:14:47 -0000 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