bug-patch
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-patch] replacement text mangled?


From: Karl Berry
Subject: [bug-patch] replacement text mangled?
Date: Tue, 9 Mar 2010 00:53:52 GMT

Hi Andreas,

I'm not sure if it is a bug, but I happened to try running patch on a
diff, made with -c0, that deleted a line, and got:

patch: **** replacement text or line numbers mangled in hunk at line 4

BTW, older versions of patch reported the same, so I don't think it's a
regression.

It's not very important, since diff -c1 works fine.
But in case, here is a recipe:

$ cat old
Hence the following macro, where \cs{parheight} is the height
in lines of the paragraph under investigation:

\verbatim[\vopt]
$ cat new
Hence the following macro, where \cs{parheight} is the height
in lines of the paragraph under investigation:
\verbatim[\vopt]
$ diff -c0 old new >/tmp/cdiff
$ cat /tmp/cdiff
*** old Mon Mar  8 16:31:32 2010
--- new Mon Mar  8 16:32:03 2010
***************
*** 3 ****
- 
--- 2 ----
$ patch </tmp/cdiff
patch: **** replacement text or line numbers mangled in hunk at line 4


Thanks,
Karl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]