From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Reasons for Switching to Eshell Date: Mon, 31 Mar 2008 10:13:15 +0200 Message-ID: References: <8763v4pfv1.fsf@gmail.com> <871w5sov5m.fsf@gmail.com> <877ifk2c4x.fsf@thievol.homelinux.org> <7dbe73ed0803301529v3c36dfcep7ee12dedca8d1e1c@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206951166 16700 80.91.229.12 (31 Mar 2008 08:12:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Mar 2008 08:12:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Mathias Dahl" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 31 10:13:17 2008 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.50) id 1JgF8l-0004H6-UO for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Mar 2008 10:13:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JgF89-0000m5-Sm for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Mar 2008 04:12:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JgF7p-0000jU-Oo for help-gnu-emacs@gnu.org; Mon, 31 Mar 2008 04:12:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JgF7o-0000iE-9d for help-gnu-emacs@gnu.org; Mon, 31 Mar 2008 04:12:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JgF7o-0000iA-25 for help-gnu-emacs@gnu.org; Mon, 31 Mar 2008 04:12:16 -0400 Original-Received: from mailrelay2.alcatel.de ([194.113.59.96]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JgF7n-0003Tm-Ov for help-gnu-emacs@gnu.org; Mon, 31 Mar 2008 04:12:16 -0400 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay2.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id m2V8C6s1001986; Mon, 31 Mar 2008 10:12:06 +0200 In-Reply-To: <7dbe73ed0803301529v3c36dfcep7ee12dedca8d1e1c@mail.gmail.com> (Mathias Dahl's message of "Mon, 31 Mar 2008 00:29:31 +0200") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.57 on 149.204.45.73 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 2) 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:52885 Archived-At: "Mathias Dahl" writes: > Neat feature however. I don't understand how it can work, how can > Tramp affect Eshell and who I am when running a certain program? Is > there code in Eshell for this? See eshell-external-command (in esh-ext.el). Eshell checks for a file name handler of shell-command, depending on default-directory. If it is found, that file name handler is called - tramp-handle-shell-command in this case. Your identity is always the one of default-directory. Btw, it works also when you jump to a real remote host like "/ssh:user@host:". The commands id and hostname might help you when you are lost. And there is also the prompt, which shows default-directory by default. Best regards, Michael.