winmerge icon indicating copy to clipboard operation
winmerge copied to clipboard

Creation of .bak files fails when the original filename starts with a dot

Open exoosh opened this issue 1 year ago • 2 comments

When making changes to a file from within WinMerge it will create a backup file based on the original filename and then .bak appended. This is usually a silent process.

Today I first ran into an issue with a file name that starts with a . where this scheme fails.

image

Since images cannot be searched as easily: the message says that the backup could not be created and mentions "C:\Users\oschneider\.bashrc (-> C:\Users\oschneider.bashrc.bak)". Note the missing \.

exoosh avatar Feb 15 '24 10:02 exoosh

This issue was fixed with commit efac7e6. Thank you for your report.

sdottaka avatar Feb 15 '24 10:02 sdottaka

Whoa, that was fast. Thank you!

exoosh avatar Feb 15 '24 10:02 exoosh