Problems when env-size gets too large

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Fri Mar 26 06:52:00 GMT 2004


On Thu, Mar 25, 2004 at 09:45:43PM -0500, Mike Sieweke wrote:
>This isn't a Cygwin limitation.  It's a Windows limit of 32k
>environment size.  There's no way around it except to limit the number
>of variables you export.  I've run into the same problem, but with
>large Bash functions (which are included in the environment).  My
>solution was to not export any functions.

Actually, you may be able to work around the problem by mounting the
directory containing the executable (or even the executable itself) with
the -X option:

  mount -X c:\somewhere\bin /somewhere/bin

This will cause cygwin to use only its own conventions for passing
arguments and environment variables, bypassing any Windows limits.

cgf

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