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=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20342 invoked from network); 27 Aug 2023 11:27:17 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 27 Aug 2023 11:27:17 -0000 Received: from m42-5.mailgun.net ([69.72.42.5]) by 9front; Sun Aug 27 07:20:16 -0400 2023 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1693135214; x=1693142414; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-Id: In-Reply-To: References: From: From: Subject: Subject: To: To: Date: Sender: Sender; bh=qOBPmsk4GFT4pvRuVVnHh4a+a5k2CKyJoHQiXYgMpZc=; b=w3Gv/vsGYzL3z/WJWUlkiXEV697ZApJsxUMyBmaL2iZyoBAIE9od5yUCwJGg17SxJrHtuK8jUTfT7SZe16QsUKCfkoZ4ROBoSZZ27W0/o7LzjRGCQJUGu2McVk+Yu39K4h5YGwqUwWcNmq92xi0ZKbMLGVNXzmdzA3HylkUhSbEReB7VDFcHNK9lktxo2pPD7Yw73xtnVyVXB/ngtNWhyU3YAg32d4REW0Cs8Ty94TkUm75zOX0XQhR079ExQjTB0kxnmofFsb6kijsICPpq9uPQoHia4rJjUguwAzChSgnxrxwI1aSvC4f+v/cnCXcAqg2l2T3jyl8q8tu0xbOm+Q== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyIyOGJkOSIsIjlmcm9udEA5ZnJvbnQub3JnIiwiMDg1NDdhIl0= Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by 83b843cc0f41 with SMTP id 64eb316ed89c644e3c2e0e79 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Sun, 27 Aug 2023 11:20:14 GMT Sender: ieliedonge=wilsonb.com@mg.wilsonb.com Received: from localhost (199.147.145.153.ap.dti.ne.jp [153.145.147.199]) by wilsonb.com (Postfix) with ESMTPSA id 316F3A0E01 for <9front@9front.org>; Sun, 27 Aug 2023 11:20:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1693135211; bh=qOBPmsk4GFT4pvRuVVnHh4a+a5k2CKyJoHQiXYgMpZc=; h=Date:To:Subject:From:References:In-Reply-To:From; b=AbOWakmgi9/FTj6onz+dCGn6riYpUxJc5MzKJuEamKg1OZifkeFS1VVxLKSSATfDt 2AbJpggGskrCgRYc7rWGWjG1eGs7tTR70xmes6hXnQQ+0zGCdZNd9vZa/YadCgyxNz WgApuH7JhiZ6gJviLFNKBufVfg6o4+yTqEJoLED6oCoZ6LHw4eI79NMHrKHyCtcBc/ Rvb1s3W0FEAwyoeuyiGe9aS+lm+R1QfOBYG6U6bTssEZ4vBfmTGpX2W7bHQaqH7JmE /HOTmsRtU3wP4w4re9nkdUqRWl7UvcECy5OcZiZgTW/MQoOYtU3wj1oZFVTldt2QfB KPcuNPoEQCoi0wk8WICiyTJ02YfbAOLrqw2jeCNCmv9Mdh8M6+J5VmKDRZtRtvj11b FAZB/yCJrxyCAqd8oFYEhBBVGlfQI5RgzRvIDbISVCxqLBoX7wOorx0dNKPqAUNrlt IdJC9uk7opvA9MFvbtuAerRUbT3BVy3NlRJQ1IM4RzAlxX+gVrf+xMlkhQ0+c1DYlf LNKgSzj5Gg8oOu8kWPPEvnYsx102mCo4kz4clABv5WH5ZqJbZgkZjsQQK+vsNXiTff prjJvb8HoJL7+MPTu9Bxg73Hkz7LsRMZ1dsB/EI4R8sm/RYyJFYb7NDvbt8yj75gT+ r8BUGZBC/g3IMkcHENrHXcRI= Date: Sun, 27 Aug 2023 20:19:58 +0900 To: 9front@9front.org From: ieliedonge@wilsonb.com References: <26E0B9AD31488853D40C701E19370A2D@eigenstate.org> <2NS6A93Q4VONO.2LMPXO8M4I4GW@wilsonb.com> <3OWTA7C36ZVYA.3C6IMNK32OWEU@wilsonb.com> In-Reply-To: Message-Id: <2T2PTG8EZ3I9B.3O4VG56AQWFN6@wilsonb.com> User-Agent: mblaze/1.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: abstract AJAX over TOR out-scaling extension Subject: Re: [9front] sed: fix moving '^' match Reply-To: 9front@9front.org Precedence: bulk > > we must be disagreeing about some fundamental understanding instead. > > it's hard for me to see still where *exactly* we differ. > > ... > > In some sense, this interpretation of 'g' is considering that 'g' makes a= n > infinite looping of the regex, applied to the resulting string and that s= hould > only end if no modification is made. Seems incorrect to me. Oh, nice! I believe you lasered in on the crux here. IIUC, hiro's mental mo= del seems to be that s///g induces a simple loop over the string where '^' can match the beginning of string multiple times, while mine (and others'?) is = that g identifies all matches *before replacement*. I'm not sure what *should* be in this case, but the latter interpretation i= s definitely consistent with the 5 or so different regex implementations I regularly interact with. > The current behavior may be bug compatible with V8. It remains a bug > IMHO. Just gave V8 a spin: # echo aabbccd | sed 's/^..//g' bbccd