Three patches against msysCORE-1.0.11-msys-1.0.11-base-src.tar.lzma.
1. comment.diff: Just adds a few comments to the msys_p2w function.
2. hyphen-convert.diff: Check for end-of-string before "/" for an argument beginning with "-"
3. spawn-leak.diff: I believe this would fix a memory leak I noticed with the msys_p2w return value
A test case that shows the problem I am fixing on three Windows XP computers I have tried, is to do:
bash -c "cmd.exe //c echo eighteen-char-word/ -"
Expected output when fixed:
I found there's already a bug opened for this issue: 1249827 "msys appending Win32 path to hyphen". But I couldn't find a way to attach my fix, so I'm opening this one.