2018-04-16 Keith Marshall <keith@users.osdn.me>
+ Suppress glob-brace expansion within quoted arguments.
+
+ * setargv.c (__mingw32_setargv) [quoted]: Handle '{', ',', and '}'
+ in the same manner as '*', and '?'.
+
+2018-04-16 Keith Marshall <keith@users.osdn.me>
+
Suppress glob-brace expansion of single item lists.
* mingwex/glob.c (glob_match) [c == '{']: Look-ahead to matching '}';
* $Id$
*
* Written by Keith Marshall <keithmarshall@users.sourceforge.net>
- * Copyright (C) 2014, 2017, MinGW.org Project
+ * Copyright (C) 2014, 2017, 2018, MinGW.org Project
*
* ---------------------------------------------------------------------------
*
*/
bracket = (_CRT_glob & ARGV_NOGROUP) ? 0 : ARGV_NOGROUP;
- case '*':
- case '?':
- /* These standard globbing tokens...
+ case '*': case '?':
+ /* These standard globbing tokens,...
+ */
+ case '{': case ',': case '}':
+ /* ...this additional triplet, non-standard, but required
+ * to support GNU's GLOB_BRACE extension; (strictly we need
+ * to consider these only if GLOB_BRACE is enabled, but it
+ * should do no harm to consider them regardless),...
*/
case ARGV_ESCAPE:
/* ...and the escape character itself, need to be escaped