Understanding a patch file [OT?]

[ Available lists | Index of freebsd-questions | Month of Nov 2005 | Week of 11 Nov 2005 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Steve Bertrand <iaccounts@ibctech.ca>
Date
11 Nov 2005 18:16:24
Subject
Understanding a patch file [OT?]
Message-ID
20051111181620.B684443D5D@mx1.FreeBSD.org


[ Hide this part ]
Hi everyone...

This may be off-topic, but I know someone may be able to help. I am
trying to better understand how to use diff, and moreso, understand it's
output.

In particular, I can't quite grasp exactly what the identifiers in
between @@ and @@ represent exactly. Here is a patch file I created. The
first change looks like it will replace lines 1 through 5, but then I
look at the second change, and it completely confuses me (-11,6 +11,8).
Can someone please clarify why 11 and 8?

--- randbak.pl Wed Oct 12 17:27:10 2005
+++ randbak2.pl Fri Nov 11 13:06:51 2005
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-
+#
use warnings;
use strict;
use Storable;
@@ -11,6 +11,8 @@
my $num;
my $sum = "sum";
my $total = 0;
+
+# Test

if (-e "randomcount"){
$href = retrieve ("randomcount");


Thank you for any advice!

Steve



Elapsed time: 0.094 seconds