From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: About PATH environment variable on OSX Date: Fri, 12 Apr 2013 07:05:19 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1365743124 19480 80.91.229.3 (12 Apr 2013 05:05:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2013 05:05:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Darren Hoo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 12 07:05:28 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 1UQWAv-0000sy-T3 for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2013 07:05:26 +0200 Original-Received: from localhost ([::1]:46057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQWAv-0003J9-DC for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2013 01:05:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQWAs-0003It-Ig for emacs-devel@gnu.org; Fri, 12 Apr 2013 01:05:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQWAr-0001kB-9f for emacs-devel@gnu.org; Fri, 12 Apr 2013 01:05:22 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:52980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQWAr-0001k5-1h for emacs-devel@gnu.org; Fri, 12 Apr 2013 01:05:21 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 1841BC9D3 for ; Fri, 12 Apr 2013 07:05:20 +0200 (CEST) Original-Received: (qmail 23310 invoked by uid 89); 12 Apr 2013 05:04:45 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 12 Apr 2013 05:04:45 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id C4FE87FA058; Fri, 12 Apr 2013 07:05:19 +0200 (CEST) In-Reply-To: X-Mailer: Apple Mail (2.1503) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 62.20.26.67 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:158846 Archived-At: Hello. The way to this on newer OSX is to create /etc/launchd.conf and put = something like: setenv PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin in there. I have not tried this myself. I will test it and fix the documentation. Jan D. 7 apr 2013 kl. 20:19 skrev Darren Hoo : >=20 > In the Emacs info manual F.1.1 Grabbing environment variables > it says and I quote: >=20 > 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. >=20 > It doesn't work for me. This is my /etc/paths file: >=20 > $ cat /etc/paths > /usr/bin > /bin > /usr/sbin > /sbin > /usr/local/bin >=20 > but (getenv "PATH") gives "/usr/bin:/bin:/usr/sbin:/sbin"=20 > and I haven't used any (setenv "PATH" ...) in my init file. >=20 > 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. >=20 > I can not find any NS-specific code that read the /etc/paths file > either. >=20 > So I think the paragraph I quoted above in the manual is incorrect and > should be removed. >=20