[OS X TeX] $PATH question -- somewhat OT

Axel E. Retif axretif at igo.com.mx
Mon Jul 4 18:54:32 CEST 2005


El 7/4/05 6:14 AM, "Stephen Moye" <stephenmoye at cox.net> escribió:

> I was checking the PATH variable in connection with another problem
> and came across what looks like an anomaly. If I use Terminal and
> type 'echo $PATH' I get this:
> 
> /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/teTeX/bin/
> powerpc-apple-darwin-current:/usr/local/bin
> 
> but in xterm I get this:
> 
> /usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin
> 
> Why are these different?

If you launch xterm as a login shell, with

xterm -ls &

in your ~/.xinitrc or X11 Applications menu:

Applications --> Customize Menu...

Menu Name       Command
Terminal        xterm -ls &

you will get the same PATH as with Terminal.app.

-----------------------
xterm as a login shell:

Last login: Mon Jul  4 11:05:35 on ttyp2
Welcome to Darwin!
Augusta:~ axretif$ echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/teTeX/bin/powerpc-apple-darwin-curr
ent:/usr/local/bin:~/bin:/Applications:/Applications/Utilities:/Developer/To
ols
----------
xterm as a non-login shell:

Augusta:~ axretif$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:~/bin:/Applications:/Applicatio
ns/Utilities:/Developer/Tools:~/bin:/Applications:/Applications/Utilities:/D
eveloper/Tools
-----------------------

Best regards,

Axel

--------------------- 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 macostex-archives mailing list