sh can't run any programs from script when PATH exceeds 2500
Chris Felaco
cfelaco@openmarket.com
Tue Mar 2 12:09:00 GMT 1999
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 <cfelaco@openmarket.com> 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
More information about the Cygwin
mailing list