[PATCH v4 1/3] Cygwin: rewrite and make public cmdline parser

Mingye Wang (Artoria2e5) arthur2e5@aosc.io
Thu Sep 24 08:39:44 GMT 2020


On 2020/9/7 17:39, Corinna Vinschen wrote:
> 
> Nope, we won't do that.  The command line parsing is an internal
> thing, and we won't export arbitrary internal functions using
> their own symbol.  *If* we should export this stuff at all, which
> I highly doubt as necessary, it should use the cygwin_internal API.

The idea is that the sort of thing get reimplemented incorrectly a lot, 
and since we have the extra @file feature and the Unix glob it would be 
nice to allow other people to use it. Win32 has CommandLineToArgvW, so I 
figured it wouldn't be too strange to have.

The escaping function is there mostly for symmetry and convenience, 
since it's basically the standard escape.

--
Regards,
Mingye


More information about the Cygwin-patches mailing list