WinMerge / winmerge

WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
https://winmerge.org/
GNU General Public License v2.0
6.15k stars 784 forks source link

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

Closed exoosh closed 5 months ago

exoosh commented 5 months ago

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 \.

sdottaka commented 5 months ago

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

exoosh commented 5 months ago

Whoa, that was fast. Thank you!