[illumos-Developer] sed from FreeBSD, REG_STARTEND

Joerg Schilling Joerg.Schilling at fokus.fraunhofer.de
Fri Aug 6 06:25:19 PDT 2010


"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

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       joerg.schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



More information about the Developer mailing list