[comp.sources.bugs] Bug in Patch..

jas@dadent (Jay Shrauner) (08/09/88)

I'm sure somebody else has tackled this question before but I don't know the
answer.  For some reason whenever I use the patch program and it hits a 
diff that only deletes a few lines, it bombs.  What I'm talking about is like
the following:

***************
*** 485,491 ****
  	echo " "
  	echo "nm didn't seem to work right."
  	echo "Trying ar instead..."
- 	rmlist="$rmlist libc.tmp"
  	if ar t $libc > libc.tmp; then
  	    sed -e 's/\.o$//' < libc.tmp > libc.list
  	    echo "Ok."
--- 489,494 ----
***************
*** 501,507 ****

etc.  The error says that the assertion failed in pch.c, line 636.  If it
matters I have patch 2.0, patchlevel 0.  If there is a patch for this could
somebody send it to me?  As it is now I have to do these types of patches
manually which kind of defeats the whole purpose of the patch program.

Jay Shrauner
jas@dadent.wustl.edu