From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.help Subject: Re: No User Shell Envir in Emacs via SSH Date: Thu, 30 Nov 2006 21:31:29 -0800 Message-ID: <87odqouqq6.fsf@offby1.atm01.sea.blarg.net> References: <87vekxdnkw.fsf@be.cs.appstate.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164951534 10084 80.91.229.2 (1 Dec 2006 05:38:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Dec 2006 05:38:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 01 06:38:53 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gq16p-0002G5-7B for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Dec 2006 06:38:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gq16o-0005i8-5x for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Dec 2006 00:38:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gq16c-0005i3-43 for help-gnu-emacs@gnu.org; Fri, 01 Dec 2006 00:38:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gq16Z-0005hr-II for help-gnu-emacs@gnu.org; Fri, 01 Dec 2006 00:38:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gq16Z-0005ho-Cz for help-gnu-emacs@gnu.org; Fri, 01 Dec 2006 00:38:35 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gq16Z-0003sj-BL for help-gnu-emacs@gnu.org; Fri, 01 Dec 2006 00:38:35 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gq16S-0002AI-Px for help-gnu-emacs@gnu.org; Fri, 01 Dec 2006 06:38:28 +0100 Original-Received: from q-static-138-125.avvanta.com ([206.124.138.125]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Dec 2006 06:38:28 +0100 Original-Received: from offby1 by q-static-138-125.avvanta.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Dec 2006 06:38:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: q-static-138-125.avvanta.com User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) Cancel-Lock: sha1:zcyjf5ZKZeYEDDHJ76r8fFnUXpc= 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:39153 Archived-At: Sitting at home, I enter this into KDE's "Run Command..." (Kubuntu) to "map" an X11/Emacs session running on my office machine onto my home machine's monitor: +----------------------------+ | Command: ssh office emacs | +----------------------------+ The window appears on my home machine as expected and works fine. The problem, however, is that my office machine's "bash environment" isn't included/defined within Emacs. Apparently, the only environmental variables defined are those from a system-wide Bash init file (e.g. DISPLAY, HOME, LANG, MAIL, PATH, etc.). Does anyone know what I need to do so that the "exported variables" (i.e., environment) defined in my ".bashrc" are also present? I've never found a good solution for this. What I'm using now is an astonishingly ugly Rube Goldberg type hack, whereby my .bashrc runs a _perl_ program that creates files with environment variable definitions -- one for the Bourne shell, and one for emacs -- and then my .bash_profile sources the shell file, and I have Emacs load the emacs file. It works, but it makes the Baby Jesus cry. Details upon request. -- Software is largely a service industry operating under the persistent but unfounded delusion that it is a manufacturing industry. -- Eric Raymond