Path: news.eternal-september.org!eternal-september.org!newsgrouper.org!.POSTED!not-for-mail From: Arjen Newsgroups: comp.lang.tcl Subject: Re: diff and patch References: <102r7e7$28ndk$1@dont-email.me> Date: Tue, 17 Jun 2025 12:13:59 GMT Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: <1750162439-153@newsgrouper.org> Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user153 Injection-Date: Tue, 17 Jun 2025 12:13:59 GMT User-Agent: Newsgrouper/0.7.2 Mark Summerfield posted: > I want these functions: > > proc diff {old new} -> # diff data "ddata" > proc patch {old ddata} -> # new > > where old and new are strings. > > I thought the Tcllib's rcs module could do this but I can't figure it out. > > Is this possible using the rcs module or using the struct::list module's > LCS functions? The patch functionality (but not the diff) is provided by the textutil package, if I understand it correctly.