I can't get diff to work consistently.
file1 has 788 lines
file2 has 913 lines. (I think all added at the end of file 1)
when I do
$diff file1 file2 > patch
and open patch
which I take to mean
starting at line 1788 of file 1, you need to change 1913 lines.
sometimes diff works correctly. And when I tried it just now on 2 short 1 line files it worked as expected.
what is going on?