[OS X Emacs] Re: environment variable PATH different (emacs shell / Mac's terminal)
Marius Hofert
marius.hofert at math.ethz.ch
Wed Oct 12 17:10:50 EDT 2011
On 2011-10-12, at 21:23 , Peter Dyballa wrote:
>
> Am 12.10.2011 um 19:48 schrieb Marius Hofert:
>
> > To be more precise, why are several folders added twice to PATH?
>
> grep PATH ~/.*
brought:
/Users/mhofert/.launchd.conf:setenv PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/opt/local/bin:/opt/local/sbin
/Users/mhofert/.profile:# MacPorts Installer addition on 2011-09-30_at_10:26:19: adding an appropriate PATH variable for use with MacPorts.
/Users/mhofert/.profile:export PATH=$PATH:/opt/local/bin:/opt/local/sbin
/Users/mhofert/.profile:# Finished adapting your PATH environment variable for use with MacPorts.
/Users/mhofert/.viminfo:?/PATH
=> ?
> 'man bash' or 'M-x manual-entry RET bash RET'.
>
> >
> > 3) Is it "good practice" or "bad practice" to set the PATH to be the same for both applications?
>
> Good. It's good to rely on the same basics.
>
>
> You can easily create ~/.launchd.conf or /etc/launchd.conf.
I executed:
echo setenv PATH $PATH >> ~/.launchd.conf
echo setenv PATH $PATH | launchctl
Now a new start of Aquamacs and M-x shell -> echo $PATH bring:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/texbin:/usr/local/texlive/2011/bin
Terminal.app gives me:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/opt/local/bin:/opt/local/sbin
=> still not equal.
>
> --
> Mit friedvollen Grüßen
>
> Pete
>
> Only useless documentation transcends the first two laws.
> – Arnold's Third Law of Documentation
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
More information about the MacOSX-Emacs
mailing list