From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: A question about Eshell Date: Thu, 29 Jan 2004 09:30:02 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87oesnkvhx.fsf@emptyhost.emptydomain.de> References: <87n08gi6vv.fsf@inspiron.nicundtas.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1075365674 12018 80.91.224.253 (29 Jan 2004 08:41:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Jan 2004 08:41:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 29 09:41:09 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Am7jZ-0006QI-00 for ; Thu, 29 Jan 2004 09:41:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Am7a3-000193-HM for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2004 03:31:19 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!fu-berlin.de!uni-berlin.de!213-203-244-156.kunde.vdserver.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 213-203-244-156.kunde.vdserver.de (213.203.244.156) Original-X-Trace: news.uni-berlin.de 1075364984 27770385 213.203.244.156 ([73968] 10430) User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:T0aFB3kewfp+Jzi9u31I/4Vcc6k= Original-Xref: shelby.stanford.edu gnu.emacs.help:120559 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16505 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16505 "Tassilo Horn" writes: > I really like using Eshell when having a console session but I have one > problem. When I su to root I don't have highlighting of > filetypes/directories and I don't have autocompletion, too. TAB makes > real TABS instead. > What can I do to have this features after suing? Eshell does not run a real shell. Instead, it interprets each command as you type it. Now, if you type su, then eshell will start a su process and send subsequent input to it. It will not interpret the I/O itself. That's why su and normal usage are different. You could try to use Tramp to access files as root. In that case, instead of su'ing to root, do "cd /root@localhost:/some/directory". After this, find-file should edit files as root, and so on. Alas, Tramp is not quite up to snuff regarding running commands. That is, if you run a command then the command might not be run as root, causing it to have too little permission. It's been this way for quite a while, and it would be great to fix it, but I haven't had the energy to do that. (In fact, I don't even know exactly in what way it is broken.) Anyone? Kai