Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <36D457C4.69A571D2@openmarket.com> Date: Wed, 24 Feb 1999 14:49:24 -0500 From: Chris Felaco Organization: PSW Technologies X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT sourceware DOT cygnus DOT com Subject: sh can't run any programs from script when PATH exceeds 2500 characters Content-Type: multipart/mixed; boundary="------------830417C0636E303E8D4FE90C" --------------830417C0636E303E8D4FE90C Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have a sh script that basically sets up a bunch of environment variables, constructs a PATH based on some input files and then runs a program. If the path is over 2500 characters, the program (no matter what program it is) gives the following error: foo: error 11 Even Win32 native apps such as cmd fail this way. Unfortunately, I can't easily reproduce the problem. I've tried writing a simple bare script to test it, but it won't fail. It only fails in my rather involved script that makes use of several input files from various locations. Is there a hard limit on the PATH size? Is there perhaps a fixed buffer size used for the PATH conversion in the cygwin DLL? Any help or suggestions are appreciated.... --------------830417C0636E303E8D4FE90C Content-Type: text/x-vcard; charset=us-ascii; name="cfelaco.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Chris Felaco Content-Disposition: attachment; filename="cfelaco.vcf" begin:vcard n:Felaco;Chris tel;work:(781)359-7367 x-mozilla-html:FALSE url:http://www.psw.com/ org:PSW Technologies adr:;;One Innovation Drive;Natick;MA;01760; version:2.1 email;internet:cfelaco AT openmarket DOT com title:Software Engineer fn:Chris Felaco end:vcard --------------830417C0636E303E8D4FE90C Content-Type: text/plain; charset= -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com --------------830417C0636E303E8D4FE90C--