You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is a difference after the block size (4096 on my Linux filesystem), it will be ignored.
Steps to reproduce the problem
I created a small test.
./diff.rb
SHA1 sum for 4096-a.txt: 8c92a77e8e627a3977d35e0c4e4bd8a3c30e1a08
SHA1 sum for 4096-b.txt: 74e5a50dfc7a0e68c02396776e395a3ef5eff0a3
diff 4096-a.txt and 4096-b.txt
No differences found
4096-a.txt
aaa...(repeats 4096 times)..aaaA
4096-b.txt
aaa...(repeats 4096 times)..aaaB
check
TTY::File.diff("4096-a.txt", "4096-b.txt")
Actual behaviour
diff is ignored.
Expected behaviour
The diff check continues after the first block size.
Describe the problem
If there is a difference after the block size (4096 on my Linux filesystem), it will be ignored.
Steps to reproduce the problem
I created a small test.
4096-a.txt
4096-b.txt
check
Actual behaviour
diff is ignored.
Expected behaviour
The diff check continues after the first block size.
I suspect lib/tty/file/compare_files.rb :32
It worked when I commented out this line, but not sure what this code intended.
Describe your environment
diff.zip
The text was updated successfully, but these errors were encountered: