[OS X TeX] X11

Peter Breitfeld phbrf at t-online.de
Sat May 28 05:38:05 EDT 2005


Am 27. Mai 2005 um 23:22 schrieb Ettore Aldrovandi:

> On Fri, May 27, 2005 at 10:57:40PM +0200, Gerben Wierda wrote:
>> On 27 May 2005, at 17:39, Rodrigo Banuelos wrote:
>
>>> I know this to do with bash vs tcsh but, what is the permanent
>>> solution?
>
>> It does not have to do with bash vs tcsh. The problem is that
>> xterm does not create login shells, but subshells only and as a
>> result parts of the initialization (e.g. /etc/csh.login) are
>> not read at all. Since the TeX i-Package has modified the shell
>> login scripts, you do not get the right PATH.
>
>> There is (or at least I do not know) no generic file I could
>> patch for X11 that would change this for *all* users. And the
>> TeX install I provide is multi-user.
>
> /etc/csh.cshrc
>
> is read by non login shells.
>
> /etc/bashrc
>
> is read by interactive shells, I'm not sure if non-login--but I
> don't use bash, so I can't say precisely. (In scripts I invoke it
> as /bin/sh anyway.)
>
> So one could set the path there, although that's probably an
> inelegant solution.
>
> A more elegant solution could be to set the path in the
> .MacOSX/environment.plist file. In that way the correct
> environment would be inherited by X11.app and its children (via
> xinit).

That's about what I have on my system. The PATH is in
.MACOSX/environment.plist, then I have a .bashrc wich is a link to 
.profile; this way login-shells and interactive shells behave the same. 
In .bashrc I read in the PATH with

export PATH=$(defaults read "${HOME}/.MacOSX/environment" PATH)

No login-shells, interactive shells and X11's xterm know the PATH as 
well as Carbon-Emacs.

Gruß Peter
-- 
===-==-==-==-==-==-==-==-==-==-===-==-==-==-==-==-==-==-==-==
Peter Breitfeld                 | http://www.pBreitfeld.de
Kreuzgasse 4, 88348 Bad Saulgau | PGP/GnuPG Key ist vorhanden
===-==-==-==-==-==-==-==-==-==-===-==-==-==-==-==-==-==-==-==

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list