From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28738 invoked from network); 24 May 2023 18:12:34 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 May 2023 18:12:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:References:From:In-reply-to:Reply-To:Cc: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ynweWTlRMe3ZbE37z8Cf921jB5FAbu/bdfyTcUqHQCM=; b=V2pZQtaul5hxjJQQPzcfxZqMeL A7iGi+m61k1Y4vUNtBHGAQGze1hHiMRb5wYPeiewgcZ5EgvA6kJvYdBR3uvBr5nhskR4NBID5vzeF dP0zOW+AEX6SBFNRVhmaIY86T052UdqgkrAP7olmnCrb+2EM94A/ym68MqeOF5Zof5qpXhqpuT/zx CvGV1XeNgQ3i+WBdab6s/cY0WOLkgLfYuz9r1rWsRIt2/Km3Aia1pMMoPhPnI9ukyYo/K+8GRxoWK D9nL3vvmGsSZZLLrvvCK6pyr9976PKODMUv/U365Y4C92orivrj5RZTJpMM5LaVCO/W78tKMMkSQl P60tg8Zw==; Received: by zero.zsh.org with local id 1q1syQ-000K5O-Cg; Wed, 24 May 2023 18:12:34 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1q1sxq-000JlD-7z; Wed, 24 May 2023 18:11:59 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.95) (envelope-from ) id 1q1sxp-000OuC-Ph for zsh-workers@zsh.org; Wed, 24 May 2023 20:11:57 +0200 In-reply-to: From: Oliver Kiddle References: <81584-1683329746.147485@6Tk5.mCsC.BbNC> To: Zsh workers Subject: Re: PATCH: migrate pcre module to pcre2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <95737.1684951917.1@hydra> Date: Wed, 24 May 2023 20:11:57 +0200 Message-ID: <95739-1684951917.792064@3-Qz.UjNX.7X1-> X-Seq: 51784 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On 12 May, Phil Pennock wrote: > I handed in my commit bit a while back because I used it so rarely and > it felt better for commit to be only the people more actively involved. > Shells and their provenance matter. So I can't commit. If I remember correctly, you indicated at the time that it shouldn't be committed, at least not at that time. We probably have more of a problem with patches getting missed than having to be backed out later. Trust and competence don't expire if not used. > My main motivation with RE2 was to get to something which all vendors > will actually include when distributing. The reason can't be licensing, > since the PCRE lib is BSD licensed. Do Apple include any of pcre, pcre2 and re2 already with macOS? It's difficult to guess at their motivations. Zsh's build system linking pcre into every ELF file by default if you enable pcre may not help. They must have put some thought into at least their initial packaging of zsh as they stripped out some of the shell functions. > I'd seen RE2 pick up quite a bit of steam and wanted to explore to see > how feasible it was. > > Ideally, we'd have a contact within Apple who can tell us what they > might or might not consider, so that we can have working regexps with > semantics younger than POSIX.2 (1992) and some more actual utility. I'm The one time I had a chance to speak to an actual Apple employee, and that was someone far removed from the Unix layer, they only reinforced my general impression that Apple really don't care about the shell and Unix part of macOS in general. The change of default shell was likely due to licencing alone. Did Apple at least provide 5.8.1 as a security patch? RHEL 8 still comes with a vulnerable 5.8 so it would seem that us doing security only releases is a waste of time. I generally stick with zsh pattern matching out of habit. =~ seems to be a popular feature, though, I guess people know and understand regexes. Does bash ignore the system regex library and use the GNU one on all systems? That's equivalent to us pulling something like TRE or PCRE into the zsh source tree and forcing its use. Oliver