On Feb 14, 2005, at 11:11 AM, Angus Leeming wrote:

Let's try and refine this. Do things work correctly if you use putenv
rather than setenv? (Ie, maybe the problem lies with (our use of) gcc
2.95's setenv routine.)

Could you alter this function in src/support/filetools.C? Do it in two
steps. Ie, add (and use) the diagnostic below

Env var "PATH", "/usr/bin:/bin:/usr/sbin:/sbin:/Users/bennett", is prepended with "/Applications/LyX-136.app/Contents/MacOS/"
PutEnv(PATH=)
PATH


setEnvPath(PATH) == 1
result:
lyxrc.path_prefix is /usr/bin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-darwin- current:/usr/X11R6/bin:/sw/bin:/opt/local/teTeX/bin
Env var "PATH", "", is prepended with "/usr/bin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-darwin- current:/usr/X11R6/bin:/sw/bin:/opt/local/teTeX/bin"
PutEnv(PATH=)
PATH


setEnvPath(PATH) == 1
        result:

and secondly use the '#if 0'
to bypass this block entirely and use the HAVE_PUTENV block.

Env var "PATH", "/usr/bin:/bin:/usr/sbin:/sbin:/Users/bennett", is prepended with "/Applications/LyX-136.app/Contents/MacOS/"
setEnvPath(PATH) == 1
result:
lyxrc.path_prefix is /usr/bin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-darwin- current:/usr/X11R6/bin:/sw/bin:/opt/local/teTeX/bin
Env var "PATH", "", is prepended with "/usr/bin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-darwin- current:/usr/X11R6/bin:/sw/bin:/opt/local/teTeX/bin"
setEnvPath(PATH) == 1
result:




Reply via email to