Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
The test was added with b778ae4.
curl 7.54.0 (x86_64-pc-msys) libcurl/7.54.0 OpenSSL/1.0.2k zlib/1.2.11 libssh2/1.7.0
MinGW-w64 on Windows 10
That's strange. All MinGW autobuilds also show this problem.
It seems to be not a problem of the shell only, but also of the C runtime used.
Using single quotes AND adding
Using single quotes definitely, as that fixes at least the non-MSYS case without breaking other stuff.
I'm not 100% sure about changing the globbing behavior as there might be users of the curl tool who rely on it?
Also, according to the mingw-w64 source on SourceForge, globbing should be off by default for MinGW-w64 (unlike original MinGW). So I wanted to find out why it's on for my MinGW-w64 curl build, but wasn't successful yet.
Yes, it's really very broken. The MSYS2 shell does its globbing and then MinGW's CRT does globbing again because the shell removes the quotes. With original MinGW from mingw.org, globbing can be controlled by additional options: