From owner-freebsd-hackers@FreeBSD.ORG Mon May 9 01:12:45 2011 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 0FD2D106566B for ; Mon, 9 May 2011 01:12:45 +0000 (UTC) (envelope-from giffunip@tutopia.com) Received: from nm7-vm0.bullet.mail.sp2.yahoo.com (nm7-vm0.bullet.mail.sp2.yahoo.com [98.139.91.192]) by mx1.freebsd.org (Postfix) with SMTP id E20E18FC14 for ; Mon, 9 May 2011 01:12:44 +0000 (UTC) Received: from [98.139.91.66] by nm7.bullet.mail.sp2.yahoo.com with NNFMP; 09 May 2011 01:12:44 -0000 Received: from [98.139.91.48] by tm6.bullet.mail.sp2.yahoo.com with NNFMP; 09 May 2011 01:12:44 -0000 Received: from [127.0.0.1] by omp1048.mail.sp2.yahoo.com with NNFMP; 09 May 2011 01:12:44 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 545069.84692.bm@omp1048.mail.sp2.yahoo.com Received: (qmail 33013 invoked by uid 60001); 9 May 2011 01:12:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1304903564; bh=/oKJJpgUjaqdXsGx+JU/Dhe3RDveBwvGKHtEr2wbmhM=; h=Message-ID:X-YMail-OSG:Received:X-RocketYMMF:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=Ubhe4nesRL+/M/7VIwc/3HFKFm/Qh7lvaR6szxA3+e/WWGUGTX9GLSfy7sa1YZqOkmB6HjBImNfbhXW8Bsg3ly9L2iIs2N7melXNdZvxVdF3M7pYIPL0Fl89YpxV4m5lFTJT+ydktRalqXfaefO2Q/FKB24YkAIifUr9sEUbltI= Message-ID: <219007.22756.qm@web113513.mail.gq1.yahoo.com> X-YMail-OSG: 8GZS2yYVM1mQnlYzV2VsxdlydW8UzKDjnQ7IcgESYuFaV66 v6gAFTErFH9wDGBOGMi5S56AaDm5m7mEwCMscf52Wt57jTAMYlmquJAw3rc7 vygirAEuO2aXAsCe8VODcmRY7PHf3ELYp9xKIosUhCKSOcHvEXXw0j7XaQNf Jokj2cvPmum.PPCMdkdZqAXL4AcxNMIJJMfcbcgylPzoZi_N8aaY96Tr.uJq Im5H3CvHpqOmDTAxab0bnwqjZMrYndixszOOkYBhfjTzDtnq3dw5JUB6Mlla lWi6Einpajy1oo9DnazxzrdA8MlIhAMZaFO_LCpkhmek7sGYwY8XPtfCxZMZ K0VPYdIOu0UCg.9.d3O0zMO.SHHaBzHYenXAyA9OtQueqOwhGkIWXqmfIvKi w5GwEQiYRBtEBAng- Received: from [200.118.158.177] by web113513.mail.gq1.yahoo.com via HTTP; Sun, 08 May 2011 18:12:44 PDT X-RocketYMMF: giffunip X-Mailer: YahooMailClassic/12.0.2 YahooMailWebService/0.8.110.299900 Date: Sun, 8 May 2011 18:12:44 -0700 (PDT) From: "Pedro F. Giffuni" To: hackers@FreeBSD.org, Gabor Kovesdan In-Reply-To: <4DC7356C.20905@kovesdan.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Mon, 09 May 2011 01:19:42 +0000 Cc: Brooks Davis Subject: Re: [RFC] Replacing our regex implementation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: giffunip@tutopia.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2011 01:12:45 -0000 Hello; Thanks Gabor for this cool project! --- On Sun, 5/8/11, Gabor Kovesdan wrote: ... > - It doesn't provide the REG_STARTEND macro, which is our > non-POSIX extension. Still, it is useful and easy to > implement so it is not a problem either. Our sed requires REG_STARTEND (the illumos guys noted so when they ported our sed). While on this you should also look at bin/153257 and check if TRE supports the sysv legacy delimiters. FWIW, the now defunct lang/gpc used those delimiters to distinguish between our sed and GNU sed. There are still more than 20 ports that depend on gsed. > Now I'm working on this little feature and on building a > libc with TRE. After that I'll publish a patch for testing > and will also ask portmgr to run it on the cluster. > It may be interesting, although unnecessarily risky, to see if diff can also use libtre (it uses GNU regex now), but you will probably want to see this as a future step. (NEVERMIND.. you explained this right ahead ;) ) > > 3, Adding support for GNU-specific permissive regex syntax > GNU grep accepts regexes that are invalid in POSIX, like > [a|]. This is necessary for grep and diff in the base > system. If we don't have them we can never trow out the GNU > regex implementation. However, we should not make them > default, so I'm thinking of implementing them somewhere > else, e.g. in the previously mentioned library. > > So far, these are the plans, please comments if you have > something in your mind about it. > Sounds good! Pedro.