My Linux test that had the issue was latest beta, 2.0.8.1. Issue sure seems erratic.
EDIT:
I am only testing 2.0.8.1 currently, but I tried to find a cross-platform bug, but didn’t.
Test is Source /tmp/short.txt with 1 letter, backup, change letter, backup, compare.
Adding in --exclude=random.txt breaks the compare on Linux, but not on Windows.
Differences are on Windows it’s C:\tmp, and notepad omits line end. Nano doesn’t.
Linux broken compare basically seems to think it has an empty backup, so outputs:
Listing changes
1: 6/10/2024 8:28:24 AM
0: 6/10/2024 8:30:07 AM
Size of backup 1: 0 bytes
No changes found
Size of backup 0: 0 bytes
Return code: 0
Should be:
Listing changes
1: 6/10/2024 8:28:24 AM
0: 6/10/2024 8:30:07 AM
Size of backup 1: 2 bytes
1 modified entries:
~ /tmp/short.txt
Modified files: 1
Size of backup 0: 2 bytes
Return code: 0
Windows works even with --exclude=random.txt
:
Listing changes
1: 6/10/2024 8:46:39 AM
0: 6/10/2024 8:47:11 AM
Size of backup 1: 1 bytes
1 modified entries:
~ C:\tmp\short.txt
Modified files: 1
Size of backup 0: 1 bytes
Return code: 0