patch(1) max line length

2024-07-11 Thread Emmanuel Dreyfus
Hello I just encoutered a patch(1) limitation when using it on minified json files from Wordpress. The lines can span more than the maximum of what patch(1) can cope, which is INT16_MAX. Here is a test for taht: jot -b A $(( 37268 / 2 )) |tr '\n' 'A' > g.txt mv g.txt g.txt.orig sed 's/A/B/' g.tx

Re: patch(1) max line length

2024-07-11 Thread Robert Elz
Date:Fri, 12 Jul 2024 01:17:57 + From:Emmanuel Dreyfus Message-ID: | I just encoutered a patch(1) limitation when using it on minified json | files from Wordpress. The lines can span more than the maximum of what | patch(1) can cope, which is INT16_MAX. He