Re: [PATCH v6] Cygwin: rewrite cmdline parser

2021-05-13 Thread Mingye Wang
Oh, I should also mention that this patch does *not* fix globbing with Windows paths. Although stuff like (in node-js): child_process.spawnSync("C:\\cygwin64\\bin\\echo.exe", ["C:\\Qt\\*"], {encoding: 'utf-8'}) is correctly fed to glob(3), the glob() function does not perform any interpr

[PATCH v6] Cygwin: rewrite cmdline parser

2021-05-13 Thread Mingye Wang
This commit rewrites the cmdline parser to achieve the following: * MSVCRT compatibility. Except for the single-quote handling (an extension for compatibility with old Cygwin), the parser now interprets option boundaries exactly like MSVCR since 2008. This fixes the issue where our escaping d