From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Felaco To: earnie_boyd@yahoo.com Cc: cygwin Subject: Re: sh can't run any programs from script when PATH exceeds 2500 Date: Wed, 31 Mar 1999 19:45:00 -0000 Message-ID: <36DC46A7.A6CD0204@openmarket.com> References: <19990225213657.7061.rocketmail@send103.yahoomail.com> X-SW-Source: 1999-03n/msg00029.html Content-type: multipart/mixed; boundary="----------=_1583532708-65105-13" Message-ID: <19990331194500.NsTI14hIGVyUrPW3S7F8BYSABKh3F9aDAjgvjzIj0Eo@z> This is a multi-part message in MIME format... ------------=_1583532708-65105-13 Content-length: 2092 Upon further investigation, it appears that the real problem is when the size of the environment exceeds ~32K. I cleaned up my path (bare minimum) and ran the enclosed script to prove my point. I also wrote a cmd file to test the native behavior. I didn't have any problems starting up programs with the large environment, but for some reason, not all of the environment gets passed to cygwin apps. A simple env command doesn't list all of the variables I created. Earnie Boyd wrote: > ---Chris Felaco wrote: > 8< > > Path: /cygnus/CYGWIN~1/H-I586~1/bin > > /batch > > /WINNT/system32 > > /WINNT > > /PROGRA~1/DEVSTU~1/SHARED~1/bin/ide > > /PROGRA~1/DEVSTU~1/SHARED~1/bin > > /Progra~1/DevStudio/VC/bin > > /emacs-20.3.1/bin > > /PROGRA~1/Tcl/bin > > /emacs-20.3.1/bin > > /PROGRA~1/Tcl/bin > > /cygnus/cygwin-B20/H-i586-cygwin32/bin > > /Perl/bin > > /enscript > > /jdk1.1.7A/bin > > /Cygnus/SN405/bin > > /Program Files/Mts > > /Sybase/DLL > > /Sybase/BIN > > /sybtools/WIN32 > > /sybtools/ASEP > > /NTReskit > > //U/transact/Toolshed/LOCAL/common/bin > > //U/transact/Toolshed/LOCAL/cnt_40/bin > 8< > > You're confusing the cygwin product with multiple paths to the > product. Secondly the /Cygnus/SN405/bin points to the first release > of version b20 which was buggy. > > Clean up the PATH environment variable so that it is included only as > the first element of the PATH. If after doing this you still have > problems resubmit the cygcheck -s -v -r output. > == > - \\||// > -------------------o0O0--Earnie--0O0o------------------- > -- earnie_boyd@yahoo.com -- > -- http://www.freeyellow.com/members5/gw32/index.html -- > ----------------------ooo0O--O0ooo---------------------- > > PS: Newbie's, you should visit my page. > _________________________________________________________ > DO YOU YAHOO!? > Get your free @yahoo.com address at http://mail.yahoo.com ------------=_1583532708-65105-13 Content-Type: text/plain; charset=us-ascii; name="envtest.cmd" Content-Disposition: inline; filename="envtest.cmd" Content-Transfer-Encoding: base64 Content-Length: 232 cmVtIGVjaG8gb2ZmCgpGT1IgL0wgJSVpIElOICgxLDEsMzIwKSBETyBzZXQg RU5WVkFSJSVpPXh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4 eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4 eHh4eHh4eHh4eHh4eHh4eHh4eHgKCnNldCB8IHdjIC1jCg== ------------=_1583532708-65105-13--