CreateProcess was: bash: /usr/bin/rm: Argument list too long
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Aug 23 08:35:00 GMT 2005
On Aug 22 17:46, Brian Dessent wrote:
> Christopher Faylor wrote:
>
> > There will be some limits (especially with cygwin 1.5.18 - this is fixed
> > in snapshots) but mounting the /bin and /usr/bin directories with -X
> > should increase the command line length enormously over the Windows
> > default of around 32K.
>
> The MSDN docs for the lpCommandLine parameter to CreateProcess
> <http://msdn.microsoft.com/library/en-us/dllproc/base/createprocess.asp>
> does indeed say the limit is 32K chars, but then there's this note that
> for Windows 2000 it's MAX_PATH which is 260, right? Why in the world
> would 2k have such a smaller limit and all the over versions have a 32K
> limit? Or is this a typo?
They made the same typo also in the CreateProcessAsUser and
CreateProcessWithLogonW man pages, but not in CreateProcessWithTokenW.
It seems to be a typo. I tried to start Cygwin's /bin/echo from a cmd
shell and it got the full command line of ~500 chars.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list