[OS X Emacs] environment variable PATH different (emacs shell / Mac's terminal)

Marius Hofert marius.hofert at math.ethz.ch
Wed Oct 12 18:16:04 EDT 2011


On 2011-10-13, at 00:00 , David Reitter wrote:

> On Oct 12, 2011, at 5:48 PM, Marius Hofert wrote:
> 
>> they did when I tried to install a certain piece of software.
> 
> The repeated paths shouldn't matter at all.  The TeX-related paths could, possibly matter, but you're the first to complain.  Can you elaborate what happened there?

Dear David,

it was when I tried to install an R package tailored to my setup (so after changing the source). So that was certainly something only affecting my setup. I'm quite sure it would not have inferred with the PATH I now have (after changing it as mentioned earlier), only with the one I had before (the default PATH):
bash-3.2$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/opt/local/bin:/opt/local/sbin:/usr/local/texlive/2011/bin:/opt/local/bin:/opt/local/sbin:/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:/usr/texbin:/usr/local/texlive/2011/bin

> 
>> But after this point and for everyday-use, it certainly doesn't matter. I just was wondering why some paths appear twice and how to get the same PATH as in Terminal.app.
> 
> Well, you can set the path to some constant using Emacs Lisp before starting the shell.

I guess you refer to here: http://www.emacswiki.org/emacs/EmacsApp

But that requires (?) to adjust it manually everytime PATH changes (and sometimes one does not know -- some program is appending things to PATH [afaik]).

I guess what's more important is the question: What are the differences between a shell opened with M-x shell from within Aquamacs to the shell opened via Terminal.app? Only environment variables? Anything more? Because these are the things one should keep in mind when working in a shell opened from within Aquamacs.

Cheers,

Marius

> 
> Aquamacs adds the above paths unconditionally to enable zero-config LaTeX functionality.
> 
> 
> --
> http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
> http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!_____________________________________________________________
> 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