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.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 8650 invoked from network); 26 Aug 2023 00:11:29 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 26 Aug 2023 00:11:29 -0000 Received: from sendmail.purelymail.com ([34.202.193.197]) by 9front; Fri Aug 25 20:05:17 -0400 2023 DKIM-Signature: a=rsa-sha256; b=kWHk9RMptfSyPrKepZQVfPScCmPm2qI/e2jFWtp11VsAb91Pt9GhvlX91hZ0ZmEb+kEH11gRoAYJ/HEDQcA/65kNicmD7u2N/F7ScXmmGBlBo2zPigq3QZIsW8vC3zOFn3XrWyl/idOffAFzxHTxeq95a1E1uNg6zqFgeuxdPWheFYI8fMqDQg4bjwClRKMQmkJDnB9lPdx7MzcVv692VAUfxw9NI20ao9XnVKV9I+9OnpdLc+fSCYVnWhGZ8XABbt8WRlruiwv8t2qB3fGHTk/4tx930/iGTftgAo9WFw27DBlc86aaS0O9L/EzEA+OkqmFPFdSHzOJ6QNrCmL5Sg==; s=purelymail1; d=pbrane.org; v=1; bh=GDgsg9RTcp0Ty/rAtcxbDnoAxkszqYvargtRx93Q9hM=; h=Received:From:To:Subject; DKIM-Signature: a=rsa-sha256; b=GzcOvDeUkPiQgWc2qgf+4zrZsVoqO96isY/a4CoDwPX16vy7R6+K5WlSAgfzJTAirAJSKtDXpVvqH3HceLyftkZ3X4aD84lSnCaeODPYE6NiEwWOXbmNAsmlVHgrdsHRWwQadwbc16Ii1xJAKp4/q5DpbPMjudrHrOE0VOIVwwRU/XgRg6Z979U7/2OdIjybAHBmZpJ+bHDuBnvL/6NVv8Ot+W5Po6+LEYldddoPdUgE/P+GkNsqVFk11Y8GBxCyO0AwipA0ijPjamK+aMu/oM1jGS+t/8mw95Scw9kn/7XzxEKzRXc2luYPTi31aaQKY8y9ywfu3uknVqPqG1a2yw==; s=purelymail1; d=purelymail.com; v=1; bh=GDgsg9RTcp0Ty/rAtcxbDnoAxkszqYvargtRx93Q9hM=; h=Feedback-ID:Received:From:To:Subject; Feedback-ID: 10987:2443:null:purelymail X-Pm-Original-To: 9front@9front.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 1717933579 for <9front@9front.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sat, 26 Aug 2023 00:05:05 +0000 (UTC) Date: Fri, 25 Aug 2023 17:04:46 -0700 From: Anthony Martin To: 9front@9front.org Message-ID: References: <26E0B9AD31488853D40C701E19370A2D@eigenstate.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26E0B9AD31488853D40C701E19370A2D@eigenstate.org> List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: self-healing cache dependency module scripting base Subject: [9front] Re: sed: fix moving '^' match Reply-To: 9front@9front.org Precedence: bulk ori@eigenstate.org once said: > Currently, if you do something like: > > echo aabbccd | sed s/^..//g > > it will output simply: > > 'd' > > [...] > > This patch works by adding a dummy character > at the start of the line, so we aren't at > the start of a line after the first sub. > > [...] > > anyone aware of any unexpected side effets > that this may have? It looks like a reasonable change but I'd be hesitant to make it. Ed(1) produces the same output and the behavior appears to be unchanged since at least the 8th edition. It's clearly a rare edge case and easily avoided by not using the g flag when it's not necessary. I doubt it would break anything, though. Cheers, Anthony