From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: inherit the path environment from .bash_profile (Mac OS 10.5) Date: Fri, 6 Aug 2010 17:36:50 +0200 Message-ID: <1AED3F95-6117-4623-ADAF-EC15C6C1A981@Web.DE> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1281112508 4825 80.91.229.12 (6 Aug 2010 16:35:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Aug 2010 16:35:08 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Jim Crossley Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 06 18:35:07 2010 Return-path: Envelope-to: geh-help-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 1OhPsv-0002ld-UU for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Aug 2010 18:35:06 +0200 Original-Received: from localhost ([127.0.0.1]:35126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhPsu-0001Wk-Aj for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Aug 2010 12:35:04 -0400 Original-Received: from [140.186.70.92] (port=42524 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhPng-0006lJ-CI for help-gnu-emacs@gnu.org; Fri, 06 Aug 2010 12:29:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhOzw-0003eh-9T for help-gnu-emacs@gnu.org; Fri, 06 Aug 2010 11:38:17 -0400 Original-Received: from fmmailgate02.web.de ([217.72.192.227]:51345) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhOzv-0003WS-VP for help-gnu-emacs@gnu.org; Fri, 06 Aug 2010 11:38:16 -0400 Original-Received: from smtp08.web.de ( [172.20.5.216]) by fmmailgate02.web.de (Postfix) with ESMTP id D335A16D8A03E; Fri, 6 Aug 2010 17:36:51 +0200 (CEST) Original-Received: from [91.35.177.217] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (WEB.DE 4.110 #24) id 1OhOyZ-0007jX-00; Fri, 06 Aug 2010 17:36:51 +0200 In-Reply-To: X-Mailer: Apple Mail (2.936) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX19kHar+msI4hMaewkF8wS4JHT5gAicwTTTFSsB+ VshVh2aKZjpTj4yxWZtL3XD6b5IBjs3acbkj9z11cBJiGjFDu8 eRbAkTnbFFML5RjoarbA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74480 Archived-At: Am 06.08.2010 um 16:00 schrieb Jim Crossley: > ;; Setup PATH > (setenv "PATH" (shell-command-to-string "source ~/.bashrc; echo -n =20 > $PATH")) You have the defaults utility which you can use inside shell RC files: setenv MANPATH `defaults read ~/.MacOSX/environment MANPATH` export PATH=3D$(defaults read "${HOME}/.MacOSX/environment" = PATH) If needed! Remember that ~/.MacOSX/environment.plist is read at login =20= time so that all applications launched afterwards (from Dock or via =20 launch service) inherit this process environment. (On Tiger, Mac OS X =20= 10.4, X11 did not pass the environemnt to its X clients.) When you =20 remotely log in you might need settings in your login shell's RC =20 file(s). Which I can't test... -- Greetings Pete Time flies like an error =96 but fruit flies like a banana! - (almost) Groucho Marx