delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/03/23:49:08

X-Spam-Check-By: sourceware.org
Message-ID: <4573A8B9.5030501@byu.net>
Date: Sun, 03 Dec 2006 21:48:57 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Argument list too long
References: <CA77FC40E7A2D24695CF3C790BB7318598828F AT DOVMS10001 DOT goss DOT gossinternational DOT com>
In-Reply-To: <CA77FC40E7A2D24695CF3C790BB7318598828F@DOVMS10001.goss.gossinternational.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Long, Phillip GOSS on 12/3/2006 8:48 PM:
> What is SHELL set to in your environment?  If it's not set to /bin/bash,
> it's may be defaulting to CMD.EXE, which has a line-length limitation,
> whereas bash (and I'm guessing most other shells in Cygwin as well) does
> not - at least, not as far as I can tell.  I think bash just allocates
> as much memory as it needs to handle the command line, which is the
> sensible approach.

Actually, Windows has a puny command line length compared to most OS'es,
but even Linux and Solaris have limits (you have to use something like GNU
Hurd to completely avoid arbitrary limits).  The limit is enforced by the
OS, not the shell (in other words, it is not bash that allocates the
command-line memory in the child process, but cygwin1.dll itself).  At one
point, cygwin inherited the Windows limitations unless you used 'mount
- -X', which told cygwin to use tricks to bypass Windows command line limits
by using shared memory instead.  But thanks to recent cygwin improvements,
the 'mount -X' behavior is now the default when one cygwin program invokes
another, regardless of your mount settings.  Are you sure you don't need
to upgrade?  But when a cygwin app invokes a non-cygwin app, you are back
to Window's limits of 32k; there's nothing cygwin can do about it, either.

> NOTICE: This e-mail and any attachment(s) may contain confidential

List policy prohibits unenforceable legalese dribble like this.  Please
use an email account that won't append your employers' disclaimer.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFc6i584KuGfSFAYARAjc9AKCy2bNTnGyOqJik1I7L6dXJQnWqhQCdHNxG
2TDZ1CePdA0EugdQUZkY4eM=
=megE
-----END PGP SIGNATURE-----

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