[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About PATH environment variable on OSX
From: |
Josh |
Subject: |
Re: About PATH environment variable on OSX |
Date: |
Fri, 12 Apr 2013 21:59:56 -0700 |
Others have made good suggestions already, but I prefer the approach
shown at http://paste.lisp.org/display/132476 because with a few elisp
functions I can manage my environment variables in my shell profile as
usual with no need to bother with silly OSXisms.
On Sun, Apr 7, 2013 at 11:19 AM, Darren Hoo <address@hidden> wrote:
>
> In the Emacs info manual F.1.1 Grabbing environment variables
> it says and I quote:
>
> For the PATH and MANPATH variables, a system-wide method of setting
> PATH is recommended on Mac OS X 10.5 and later, using the `/etc/paths'
> files and the `/etc/paths.d' directory.
>
> It doesn't work for me. This is my /etc/paths file:
>
> $ cat /etc/paths
> /usr/bin
> /bin
> /usr/sbin
> /sbin
> /usr/local/bin
>
> but (getenv "PATH") gives "/usr/bin:/bin:/usr/sbin:/sbin"
> and I haven't used any (setenv "PATH" ...) in my init file.
>
> I can confirm that PATH settings in the /etc/paths and /etc/paths.d are
> never picked up by the programs launched from the Finder by writing a
> simple Cocoa App.
>
> I can not find any NS-specific code that read the /etc/paths file
> either.
>
> So I think the paragraph I quoted above in the manual is incorrect and
> should be removed.
>
>
Re: About PATH environment variable on OSX,
Josh <=