[OS X TeX] Staying on the right PATH (or something)
Peter Dyballa
Peter_Dyballa at Web.DE
Thu Nov 15 11:25:36 CET 2007
Am 15.11.2007 um 09:29 schrieb Morten Høgholm:
> (call-process shell-file-name nil
> t nil
> shell-login-switch
> shell-command-switch
> "printenv"))
A login shell is launched that executes printenv. Then the list is
searched for PATH, which is then stuffed into the own process
environment – ahhem, actually not, some Emacs mechanisms never learn
this late addition according to my experience with an account without
~/.MacOSX/environment.plist file. If you don't want to use ~/.MacOSX/
environment.plist you have to use such detours ... and success is not
guaranteed.
And this approach misses some useful environment variables like
MANPATH or INFOPATH or CFLAGS or ...
--
Greetings
Pete
A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete
fools.
More information about the macostex-archives
mailing list