Please no: [OS X TeX] set environment variables for applications
Stefan Walsen
stefan at walsen.net
Tue May 25 17:46:23 CEST 2004
Kino wrote:
> On May 25, 2004, at 23:33, Adam Maxwell wrote:
>
>> On 25 May, 2004, at 09:16, Kino wrote:
>>
>>> $PATH set in the environment.plist is not effective for commands
>>> executed in Terminal if I'm not mistaken.
>>
>> I set CVS_RSH=ssh and SSH_AUTH_SOCK=/tmp/501/SSHKeychain.socket in
>> environment.plist for precisely this reason: that they are available
>> to cvs/ssh when run from Terminal, CVL, XCode, Fugu, and other apps.
>
> Ah, those variables are available also in Terminal? So $PATH is treated
> differently? If I don't define it in ~/.profile, $PATH set in
> /etc/profile is used and that in environment.plist is ignored in
> Terminal. Perhaps because a command called by ^R in Xcode would not be
> executed via login shell?
PATH is not treated differently or ignored, but /etc/profile overwrites
the PATH set in the environment.plist right at the start. You can check
this by adding something like "PLIST_PATH=$PATH" as the very first line
of /etc/profile .
As you suspected, this only happens with login shells.
Stefan
-----------------------------------------------------
Please see <http://www.esm.psu.edu/mac-tex/> for list
guidelines, information, and LaTeX/TeX resources.
More information about the macostex-archives
mailing list