MinGW Notification List
mingw****@lists*****
Tue Apr 17 03:35:24 JST 2018
#38207: MinGW.org glob(3) function implementation mishandles the GLOB_BRACE feature Open Date: 2018-04-15 19:47 Last Update: 2018-04-16 19:35 URL for this Ticket: https://osdn.net//projects/mingw/ticket/38207 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38207 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2018-04-16 19:35 Updated by: keith * Status Update from Open to Closed * Resolution Update from None to Fixed Comment: I've now applied the two patches, and committed to the git repository; the updates will be incorporated into the next WSL release. --------------------------------------------------------------------- Ticket Status: Reporter: keith Owner: keith Type: Issues Status: Closed Priority: 5 - Medium MileStone: (None) Component: WSL Severity: 5 - Medium Resolution: Fixed --------------------------------------------------------------------- Ticket details: The glob(3) function is provided by libmingwex.a. In addition to its fundamentally POSIX.1-2008 compliant behaviour, it also supports several MinGW.org specific features, and aims to support the GNU GLOB_BRACE feature. Unfortunately, the MinGW.org implementation does not entirely conform to behavioural expectations of GNU's own glibc implementation, (cf. this mailing list thread); specifically:– The brace-enclosed expression may not be adequately checked for well-formedness, prior to expansion, and An expression comprising only a single item is expanded anyway, and the enclosing braces are discarded; this differs from expected GNU behaviour, which does not result in expansion of expressions comprising fewer than two items. Additionally, the usage of MinGW.org's glob(3) implementation within the MinGW C runtime start-up code, when the GLOB_BRACE feature is enabled within the _CRT_glob configuration variable, does not disable brace expansion for expressions within quoted command arguments, as it should. -- Ticket information of MinGW - Minimalist GNU for Windows project MinGW - Minimalist GNU for Windows Project is hosted on OSDN Project URL: https://osdn.net/projects/mingw/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net//projects/mingw/ticket/38207 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38207