[illumos-Developer] sed from FreeBSD, REG_STARTEND

ken mays maybird1776 at yahoo.com
Fri Aug 6 06:29:01 PDT 2010



--- On Fri, 8/6/10, Joerg Schilling <Joerg.Schilling at fokus.fraunhofer.de> wrote:

> From: Joerg Schilling <Joerg.Schilling at fokus.fraunhofer.de>
> Subject: Re: [illumos-Developer] sed from FreeBSD, REG_STARTEND
> To: garrett at damore.org, developer at lists.illumos.org
> Date: Friday, August 6, 2010, 9:25 AM
> "Garrett D'Amore" <garrett at damore.org>
> wrote:
> 
> > So FreeBSD sed depends on a macro called REG_STARTEND,
> which allows the 
> > caller to indicate where in the substring the regular
> expression should 
> > be applied.  Legacy Solaris does not support this
> function.
> ...
> 
> > Another approach is to simply make sed carry its own
> copy of the regex code.
> >
> > So, what are the opinions here (please remember that
> I'm final arbiter 
> > for now as I have not yet appointed a developer
> council, but I want to 
> > hear any good logical rationales):
> >
> > a) just expose REG_STARTEND to everyone
> > b) expose it only to consolidation members
> > c) don't support it all in libc, and force sed to
> carry a separate copy
> >
> > I'm leaning quite strongly towards "b" for now, but
> this felt like a 
> > decision that may be "architectural" enough to justify
> a quick review.
> 
> Let me first add
> 
> d) implement REG_STARTEND in /usr/include/regex.h bit add
> something like a 
>     #ifdef __BSD_EXTENSION
>     #endif
> 
> I could live with b) and d)
> 
> Jörg


+1 on that.

~ Ken



      



More information about the Developer mailing list