Date: Fri, 14 Apr 2017 15:41:02 -0500 From: Kyle Evans <kevans91@ksu.edu> To: Pedro Giffuni <pfg@freebsd.org> Cc: <freebsd-hackers@freebsd.org>, Ed Maste <emaste@freebsd.org> Subject: Re: Replacing libgnuregex Message-ID: <CACNAnaHTAS7a%2BvuTS%2B3yAT3p_4yUY_MOmd=mfBc922-0pjNW9g@mail.gmail.com> In-Reply-To: <10004f0d-acb7-f81a-f3d5-b368e606a105@FreeBSD.org> References: <CACNAnaEmBjWudEJwvRTSqyciOp7-oRbCEQ_e6qtGsap0oHQ4yw@mail.gmail.com> <CACNAnaGOLVKR7Y4uzhuS7EB5-UMb3tS9yKL4Srn8knThk0o1kg@mail.gmail.com> <10004f0d-acb7-f81a-f3d5-b368e606a105@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 14, 2017 at 3:24 PM, Pedro Giffuni <pfg@freebsd.org> wrote: > > That doesn't seem good: anything that breaks tests is very likely to have > other side-effects. > Keep in mind that any regex change will likely have to go through a ports > exp-run and > ports will still have to work fine in three versions of FreeBSD. > Yeah, I anticipate other side-effects from this. Fortunately, there aren't many ports relying on GNU extensions, and as a part of [1] I'm trying to get them to start using textproc/gnugrep since this is more up-to-date and well-tested. As far as sed goes, the only potential breakage should come from \<, \>, \b, \B, \w, \W, \s, and \S expecting to be ordinary. This is easy to fix in a way that is actually POSIX compliant (unlike expecting them to be ordinary), so no worries there. It's worth noting that I have absolutely no intention of changing anything to actually expect GNU extensions, but I tend to use them myself in my own daily grep(1) usage- some of them are nice to have. > > It is difficult to know exactly how far we want to keep the GNU grep > behavior. It is perfectly fine for BSD grep to keep a slightly incompatible > behavior as long as we keep within standards. > > Just my $0.02, > > Much appreciated. =) Kyle Evans [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218385
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACNAnaHTAS7a%2BvuTS%2B3yAT3p_4yUY_MOmd=mfBc922-0pjNW9g>