X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 25 Nov 2009 10:08:52 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Cygwin bash regexp matching doesn't treat "\b" properly Message-ID: <20091125090852.GB29173@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <26500158 DOT post AT talk DOT nabble DOT com> <26500814 DOT post AT talk DOT nabble DOT com> <4B0C4C2A DOT 3080502 AT gmail DOT com> <26503748 DOT post AT talk DOT nabble DOT com> <20091124222348 DOT GA8598 AT ednor DOT casa DOT cgf DOT cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091124222348.GA8598@ednor.casa.cgf.cx> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Nov 24 17:23, Christopher Faylor wrote: > On Tue, Nov 24, 2009 at 10:18:27PM +0000, Eric Blake wrote: > >So, in true open source fashion, why not write a patch that teaches cygwin's > >regex(3) implementation that \b is a synonym to [[:<:][:>:]]? > >[...] > If anyone does this they should remember that Cygwin's regex is based on > freebsd and making major changes to it is not something that we'd > lightly consider since that causes potential merge conflicts later. Actually, after having a look into Cygwin's regex, it turns out that there were no changes since 2001. The current FreeBSD implementation also handles multibyte charsets correctly, which the Cygwin regex lacks. We should replace it with a newer version really soon. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple