From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 18 05:43:40 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84A771065673; Wed, 18 Jun 2008 05:43:40 +0000 (UTC) (envelope-from jh@saunalahti.fi) Received: from emh01.mail.saunalahti.fi (emh01.mail.saunalahti.fi [62.142.5.107]) by mx1.freebsd.org (Postfix) with ESMTP id 2F5ED8FC15; Wed, 18 Jun 2008 05:43:40 +0000 (UTC) (envelope-from jh@saunalahti.fi) Received: from saunalahti-vams (vs3-11.mail.saunalahti.fi [62.142.5.95]) by emh01-2.mail.saunalahti.fi (Postfix) with SMTP id CAAF51AB06; Wed, 18 Jun 2008 08:23:55 +0300 (EEST) Received: from emh01.mail.saunalahti.fi ([62.142.5.107]) by vs3-11.mail.saunalahti.fi ([62.142.5.95]) with SMTP (gateway) id A01701C7309; Wed, 18 Jun 2008 08:23:55 +0300 Received: from a91-153-120-204.elisa-laajakaista.fi (a91-153-120-204.elisa-laajakaista.fi [91.153.120.204]) by emh01.mail.saunalahti.fi (Postfix) with SMTP id B4DB34BB77; Wed, 18 Jun 2008 08:23:47 +0300 (EEST) Date: Wed, 18 Jun 2008 08:23:47 +0300 From: Jaakko Heinonen To: Gabor Kovesdan Message-ID: <20080618052347.GA1877@a91-153-120-204.elisa-laajakaista.fi> References: <485453F2.60507@FreeBSD.org> <4854BC29.3060507@FreeBSD.org> <485807CD.1030601@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <485807CD.1030601@FreeBSD.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Antivirus: VAMS 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-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2008 05:43:40 -0000 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