From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John McHugh Newsgroups: gmane.emacs.bugs Subject: bug#7923: 23.2; Shell PATH environment variable problem Date: Thu, 27 Jan 2011 17:33:41 -0500 Message-ID: References: <41BA395F-882C-4220-8783-DD0835920415@cs.unc.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1296208539 21571 80.91.229.12 (28 Jan 2011 09:55:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Jan 2011 09:55:39 +0000 (UTC) Cc: 7923@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 28 10:55:34 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pil3G-0002RE-Ie for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jan 2011 10:55:34 +0100 Original-Received: from localhost ([127.0.0.1]:60087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pil3F-00024v-VQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jan 2011 04:55:34 -0500 Original-Received: from [140.186.70.92] (port=36091 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pil2u-00020m-H2 for bug-gnu-emacs@gnu.org; Fri, 28 Jan 2011 04:55:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pil2t-00056Z-BQ for bug-gnu-emacs@gnu.org; Fri, 28 Jan 2011 04:55:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pil2t-00056T-7D for bug-gnu-emacs@gnu.org; Fri, 28 Jan 2011 04:55:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PiaHy-0000JW-Ah; Thu, 27 Jan 2011 17:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: John McHugh Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jan 2011 22:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7923 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: Original-Received: via spool by 7923-submit@debbugs.gnu.org id=B7923.12961671441183 (code B ref 7923); Thu, 27 Jan 2011 22:26:02 +0000 Original-Received: (at 7923) by debbugs.gnu.org; 27 Jan 2011 22:25:44 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiaHg-0000J1-Kg for submit@debbugs.gnu.org; Thu, 27 Jan 2011 17:25:44 -0500 Original-Received: from fafnir.cs.unc.edu ([152.2.129.90]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiaHf-0000Io-7V for 7923@debbugs.gnu.org; Thu, 27 Jan 2011 17:25:43 -0500 Original-Received: from [69.22.144.226] ([69.22.144.226]) (authenticated bits=0) by fafnir.cs.unc.edu (8.14.3/8.14.3) with ESMTP id p0RMXk8Y031450 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 27 Jan 2011 17:33:52 -0500 In-Reply-To: X-Mailer: Apple Mail (2.1082) X-Scanned-By: MIMEDefang 2.71 on 152.2.129.90 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 27 Jan 2011 17:26:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43695 Archived-At: 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 =20 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=20 /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