www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/23/04:35:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 23 Aug 2005 10:34:57 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: CreateProcess was: bash: /usr/bin/rm: Argument list too long
Message-ID: <20050823083457.GL17452@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <OF2DB26951 DOT D12307CF-ONC1257065 DOT 0045672A-C1257065 DOT 00472A45 AT dk DOT ibm DOT com> <4309D026 DOT 8000702 AT byu DOT net> <20050822145726 DOT GD1223 AT trixie DOT casa DOT cgf DOT cx> <430A71EC DOT 6EAC330B AT dessent DOT net>
Mime-Version: 1.0
In-Reply-To: <430A71EC.6EAC330B@dessent.net>
User-Agent: Mutt/1.4.2i

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 AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019