bug-ed
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Support POSIX extended regular expressions


From: Antonio Diaz Diaz
Subject: Re: [PATCH] Support POSIX extended regular expressions
Date: Mon, 20 Jul 2020 22:29:31 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14

Dear Shawn,

Shawn Wagner wrote:
-  n = regcomp( exp, pat, 0 );
+  n = regcomp( exp, pat, use_extended_re ? REG_EXTENDED : 0 );

Thank you for the patch. POSIX states[1] that "The ed utility shall support basic regular expressions, as described in XBD Basic Regular Expressions", but yours looks like a nice extension that could be even eventually standardized by POSIX. I'll implement it ASAP and will publish a new release.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ed.html

BTW, there is no public repository for GNU ed. Patches are a rare occurrence here.

Best regards,
Antonio.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]