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

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Oct 13 12:14:41 GMT 2020


On Sep 24 16:39, Mingye Wang (Artoria2e5) wrote:
> 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.

In contrast to stock Windows executables we already have a valid argv.


Corinna



More information about the Cygwin-patches mailing list