Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <430A71EC.6EAC330B@dessent.net>
Date: Mon, 22 Aug 2005 17:46:36 -0700
From: Brian Dessent <brian@dessent.net>
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: CreateProcess was: bash: /usr/bin/rm: Argument list too long
References: <OF2DB26951.D12307CF-ONC1257065.0045672A-C1257065.00472A45@dk.ibm.com> <4309D026.8000702@byu.net> <20050822145726.GD1223@trixie.casa.cgf.cx>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com

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?

Brian

--
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/

