Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3F984256.40604@free.fr> Date: Thu, 23 Oct 2003 23:04:22 +0200 From: Nicolas BUONOMO User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: fr-fr, fr, en-us, en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Cygwin/bash: need environment variables >32K References: <445C57B81208C24EAD99F2944DBB9D29030212FE AT BLNSS10A> <200310230938 DOT LAA24318 AT trantor DOT eads-dsn DOT com> <20031023101047 DOT GZ1653 AT cygbert DOT vinschen DOT de> In-Reply-To: <20031023101047.GZ1653@cygbert.vinschen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Corinna Vinschen a écrit : > On Thu, Oct 23, 2003 at 11:39:39AM +0200, david.liberce wrote: > >>I reproduce this behaviour. >> >>Looks like the PATH environment variable is not valid anymore after $VAR >>has been asigned? > > > Nope. I debugged this situation. It looks like a Windows restriction. > When trying to call CreateProcess() with this long environment variable > in the environment block, CreateProcess() fails with Windows error 87, > "The parameter is incorrect." But there's no hint about a limit in the > CreateProcess() man page. > > *dig, dig, dig* > > Uh, ok, I found the following hint in the GetEnvironmentVariable() man page: > > lpBuffer > [out] Pointer to a buffer that receives the contents of the specified > environment variable. An environment variable has a maximum size limit > of 32,767 characters, including the null-terminating character. > > So, that explains it. > > Corinna > I think it's possible to change the size of the environnement for the DOS box. I have do that for DOS application (on NT4), but I don't remeber how. I try to find it. Nicolas -- 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/