From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Darren Hoo Newsgroups: gmane.emacs.devel Subject: About PATH environment variable on OSX Date: Mon, 08 Apr 2013 02:19:51 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365359003 24751 80.91.229.3 (7 Apr 2013 18:23:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Apr 2013 18:23:23 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 07 20:23:26 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UOuFO-0002n6-EM for ged-emacs-devel@m.gmane.org; Sun, 07 Apr 2013 20:23:22 +0200 Original-Received: from localhost ([::1]:57824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOuFO-0001m4-1K for ged-emacs-devel@m.gmane.org; Sun, 07 Apr 2013 14:23:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOuFJ-0001le-5m for emacs-devel@gnu.org; Sun, 07 Apr 2013 14:23:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOuCL-00007C-6A for emacs-devel@gnu.org; Sun, 07 Apr 2013 14:20:24 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:58559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOuCK-00006t-T4 for emacs-devel@gnu.org; Sun, 07 Apr 2013 14:20:13 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UOuCJ-0006x9-Sd for emacs-devel@gnu.org; Sun, 07 Apr 2013 20:20:11 +0200 Original-Received: from 123.122.115.140 ([123.122.115.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Apr 2013 20:20:11 +0200 Original-Received: from darren.hoo by 123.122.115.140 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Apr 2013 20:20:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 123.122.115.140 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (darwin) Cancel-Lock: sha1:Fx0EQBLlhnXbcvNeft5pHFE9qzw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158760 Archived-At: 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.