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 04522ed commit 7d8b676Copy full SHA for 7d8b676
compat/mingw.c
@@ -1120,13 +1120,14 @@ static const char *quote_arg_msys2(const char *arg)
1120
1121
for (p = arg; *p; p++) {
1122
int ws = isspace(*p);
1123
- if (!ws && *p != '\\' && *p != '"' && *p != '{')
+ if (!ws && *p != '\\' && *p != '"' && *p != '{' && *p != '\'' &&
1124
+ *p != '?' && *p != '*' && *p != '~')
1125
continue;
1126
if (!buf.len)
1127
strbuf_addch(&buf, '"');
1128
if (p != p2)
1129
strbuf_add(&buf, p2, p - p2);
- if (!ws && *p != '{')
1130
+ if (*p == '\\' || *p == '"')
1131
strbuf_addch(&buf, '\\');
1132
p2 = p;
1133
}
0 commit comments