Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Mark Summerfield Newsgroups: comp.lang.tcl Subject: diff and patch Date: Tue, 17 Jun 2025 08:02:15 -0000 (UTC) Organization: A noiseless patient Spider Lines: 11 Message-ID: <102r7e7$28ndk$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 17 Jun 2025 10:02:16 +0200 (CEST) Injection-Info: dont-email.me; posting-host="3d3559b272c67f62a4db60fc1f9cff67"; logging-data="2383284"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/N3pz4QMd7fg92/YO6h53W" User-Agent: Pan/0.154 (Izium; 517acf4) Cancel-Lock: sha1:3hHca/9DZAzFtd9BYp99rrVXtp0= 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?