Lastest busybox git prints lines before and after diff lines.

"Michael D. Setzer II via busybox" <[email protected]>
Newsgroups gmane.linux.busybox
Message-ID <[email protected]>
Noticed a difference in diff between Fedora and busybox??
Was comparing to files where lines with 1M changed to 4M
But busybox outputting different lines.
Fedora diff shows 108 lines while busybox diff is 151 lines?

Made two small test files.

$ cat test1 test2
a
b
c
d
ex
f
g

a
b
c
d
e
f
g

Fedora diff just shows line 5
$ diff test1 test2
5c5
< ex
---
> e

Busybox diff shows additional lines?
$ busybox diff test1 test2
--- test1
+++ test2
@@ -2,6 +2,6 @@
 b
 c
 d
-ex
+e
 f
 g

+------------------------------------------------------------+
 Michael D. Setzer II - Computer Science Instructor (Retired)     
 mailto:[email protected]                            
 mailto:[email protected]
 mailto:[email protected]
 Guam - Where America's Day Begins                        
 G4L Disk Imaging Project maintainer 
 http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.