GNU bug report logs - #7923
23.2; Shell PATH environment variable problem

Previous Next

Package: emacs;

Reported by: John McHugh <mchugh <at> cs.unc.edu>

Date: Wed, 26 Jan 2011 21:30:03 UTC

Severity: normal

Found in version 23.2

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: John McHugh <mchugh <at> cs.unc.edu>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 7923 <at> debbugs.gnu.org
Subject: bug#7923: 23.2; Shell PATH environment variable problem
Date: Thu, 27 Jan 2011 17:33:41 -0500
Stefan

I don't think this is the problem

In OS X, Leopard, the initial $PATH setting comes from a property list file

~/.MacOSX/environment.plist  

This file contains a list of properties and their initial values.  In this case, the properties are environment variables.
The value for the PATH is 

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

According to the OS X Leopard documentation, the contents of files in /etc/paths.d is then added to PATH.  This allows software packages to add their specific bin directories without consideration of the specific shell to be used, or the user using the machine.  Installing X11 adds a file to this directory containing the path to X11 binaries.

Now, if I issue the emacs command "shell-command echo $PATH" I get the PATH value that is in the plist file.  If I change the plist file, output of that command changes, as well.

What is not happening is that the additional files in /etc/paths.d are not being added to the path.

Since my shell for shell windows in emacs is bash, my .bashrc file is being executed since, they appear in the PATH echoed from a shell window in emacs.

Is there an explanation of how emacs sets the path for shell commands?

John





This bug report was last modified 9 years and 59 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.