From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: Inferior process mystery Date: Wed, 25 Apr 2012 21:21:26 -0500 Message-ID: References: <6626E25F-B780-4773-AEAA-D9451BC0E9ED@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1335412688 16811 80.91.229.3 (26 Apr 2012 03:58:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2012 03:58:08 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 26 05:58:07 2012 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 1SNFqI-000754-Kr for ged-emacs-devel@m.gmane.org; Thu, 26 Apr 2012 05:58:06 +0200 Original-Received: from localhost ([::1]:58177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNFqI-0001Yu-40 for ged-emacs-devel@m.gmane.org; Wed, 25 Apr 2012 23:58:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNFqE-0001Yp-Nr for emacs-devel@gnu.org; Wed, 25 Apr 2012 23:58:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNFqD-0005EC-4B for emacs-devel@gnu.org; Wed, 25 Apr 2012 23:58:02 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNFqC-0005E1-Tr for emacs-devel@gnu.org; Wed, 25 Apr 2012 23:58:01 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SNFq9-0006vz-Ex for emacs-devel@gnu.org; Thu, 26 Apr 2012 05:57:57 +0200 Original-Received: from c-98-215-105-167.hsd1.il.comcast.net ([98.215.105.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Apr 2012 05:57:57 +0200 Original-Received: from jwiegley by c-98-215-105-167.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Apr 2012 05:57:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-105-167.hsd1.il.comcast.net User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/23.4 (darwin) Cancel-Lock: sha1:dLKBV3/Sf0dI5uL38johJTOKn3g= 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:150040 Archived-At: >>>>> Ivan Andrus writes: > Since you're on a Mac, GUI applications don't inherit from your shell. > Instead you should set environment variables in ~/.MacOSX/environment.plist, > or see [1] for a number of other ways to set them and the different problems > they have. I use ~/.MacOSX/environment for _all_ environment variables, and then put this in my .zshrc: if [ -x $HOME/bin/shell-args ]; then eval `$HOME/bin/shell-args` if And that script does this: #!/usr/bin/perl $MULTILINE_MATCHING = 1; open(ARGS, "~/.MacOSX/environment.plist") || die; while () { print "export $1" if /(.+?)<\/key>/; print "=\"$1\"\n" if /(.+?)<\/string>/; } That way, I only have to consider a single place. John