We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e4058d commit 50b82c7Copy full SHA for 50b82c7
compat/mingw.c
@@ -1134,13 +1134,13 @@ static const char *quote_arg_msys2(const char *arg)
1134
1135
for (p = arg; *p; p++) {
1136
int ws = isspace(*p);
1137
- if (!ws && *p != '\\' && *p != '"')
+ if (!ws && *p != '\\' && *p != '"' && *p != '{')
1138
continue;
1139
if (!buf.len)
1140
strbuf_addch(&buf, '"');
1141
if (p != p2)
1142
strbuf_add(&buf, p2, p - p2);
1143
- if (!ws)
+ if (!ws && *p != '{')
1144
strbuf_addch(&buf, '\\');
1145
p2 = p;
1146
}
0 commit comments