[OS X TeX] where does Mac OS X set default PATH for bash?

Art Werschulz agw at comcast.net
Fri Nov 14 20:14:43 CET 2008


Hi.

This is maybe off-topic, but there is a trace of TeX-ness in what  
follows.

I am using bash on my Mac OS X (Leopard) box.  My PATH is as follows  
(slightly reformatted for readability);
	/usr/local/texlive/2008/bin/universal-darwin
	.
	/Applications/Emacs.app/Contents/MacOS/bin
	/usr/local/texlive/2007/bin/i386-darwin
	/sw/bin
	/sw/sbin
	/usr/libexec
	/Developer/Tools
	/usr/local/bin
	/usr/local/sbin
	/bin
	/sbin
	/usr/bin
	/usr/sbin
	/usr/X11R6/bin
	/usr/X11/bin
	.

I am not crazy about this, for several reasons.  Having a dot (current  
directory) so high in the list is Bad News from a security viewpoint.   
The Emacs.app application doesn't exist on my machine anymore.  I  
don't want to search /usr/local/texlive/2007, since I'm using the 2008  
version of TeXLive.

You may wonder how I'm setting my PATH.  Here's how (i.e., here's the  
relevant part of .bashrc):
	TeX=/usr/local/texlive/2008
	(echo $PATH | grep -q /usr/local/sbin) || PATH=/usr/local/sbin:$PATH
	(echo $PATH | grep -q /usr/local/bin) || PATH=/usr/local/bin:$PATH
	PATH=$TeX/bin/universal-darwin:$PATH
	export PATH=${PATH}:.
So from the looks of things, the default PATH must consist of
	.
	/Applications/Emacs.app/Contents/MacOS/bin
	/usr/local/texlive/2007/bin/i386-darwin
	/sw/bin
	/sw/sbin
	/usr/libexec
	/Developer/Tools
	/usr/local/bin
	/usr/local/sbin
	/bin
	/sbin
	/usr/bin
	/usr/sbin
	/usr/X11R6/bin
	/usr/X11/bin

Since I want to change this, I need to know where this default is  
set.  Any ideas?

Thanks.

Art Werschulz
207 Stoughton Avenue, Cranford  NJ 07016-2838
(908) 272-1146






More information about the macostex-archives mailing list