NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/54620: patch(1) has issues with long lines
The following reply was made to PR bin/54620; it has been noted by GNATS.
From: coypu%sdf.org@localhost
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: bin/54620: patch(1) has issues with long lines
Date: Wed, 16 Oct 2019 11:21:39 +0000
Oops, the failing variant is with "10000s" :-)
#!/bin/sh
printf %10000s |tr " " "a" > longlines 2>/dev/null
cat << EOF > longlines.patch
--- ./longlines.orig 2019-10-16 09:25:30.667656644 +0000
+++ ./longlines
@@ -1 +1 @@
EOF
printf -- "-"%10000s"\n" |tr " " "a" >> longlines.patch 2>/dev/null
printf -- "+"%10000s |tr " " "b" >> longlines.patch 2>/dev/null
patch longlines < longlines.patch
Home |
Main Index |
Thread Index |
Old Index