From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10153 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: [PATCH] regex: support non-greedy quantifiers Date: Thu, 16 Jun 2016 15:41:21 -0400 Message-ID: <20160616194121.GJ10893@brightrain.aerifal.cx> References: <66E91EF4-6D8E-4263-9386-24C9FF9DC2D9@gmail.com> <20160616191050.GT22574@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1466106099 10768 80.91.229.3 (16 Jun 2016 19:41:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jun 2016 19:41:39 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10166-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jun 16 21:41:37 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1bDdAX-0000rH-Ag for gllmg-musl@m.gmane.org; Thu, 16 Jun 2016 21:41:37 +0200 Original-Received: (qmail 18348 invoked by uid 550); 16 Jun 2016 19:41:35 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 18323 invoked from network); 16 Jun 2016 19:41:34 -0000 Content-Disposition: inline In-Reply-To: <20160616191050.GT22574@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10153 Archived-At: On Thu, Jun 16, 2016 at 09:10:50PM +0200, Szabolcs Nagy wrote: > * Julien Ramseier [2016-06-16 17:33:48 +0200]: > > > Le 13 mars 2016 à 12:06, Julien Ramseier a écrit : > > > > > > Here's a tiny patch to enable non-greedy regex quantifiers. > > > This is not specified by POSIX, but I think it's a useful > > > extension, and all the code for supporting it is already present. > ... > > > > Ping? > > musl is conservative about its regex syntax since extensions > are not portable across impementations so users cannot rely > on them. > > i think this extension is not available in glibc and other > posix regex implementations either, it's a perl invention, > so it would be wrong to add it to musl, those who want perl > syntax can use the pcre lib. Indeed, and beyond the general principle of not adding extensions without strong precedent and justification, I really do not want to be adding new dubious extensions to something we're considering rewriting completely. It would add implementation burden and constraints on the new implementation. Rich