From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.help Subject: Re: completion while su-ing in eshell Date: Thu, 31 Oct 2002 22:19:41 -0700 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-admin@gnu.org Message-ID: <87lm4dyihe.fsf@alice.dynodns.net> References: <87ptu6z1e5.fsf@axhlave.cottages> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036130532 30862 80.91.224.249 (1 Nov 2002 06:02:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 1 Nov 2002 06:02:12 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 187Usj-00081T-00 for ; Fri, 01 Nov 2002 07:02:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 187Uph-00047m-00; Fri, 01 Nov 2002 00:59:01 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!telocity-west!TELOCITY!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help X-Public-Key: http://pgp5.ai.mit.edu:11371/pks/lookup?op=get&search=0xF40524D0 X-Home-Page: http://www.gci-net.com/users/j/johnw/ User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:SFkW3LhwgDVJ4cGb1pAfOomCf4U= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 30 Original-Xref: shelby.stanford.edu gnu.emacs.help:106644 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3195 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3195 >>>>> On Sat Oct 19, lorint writes: > Hi, In eshell, when I su to root or another user, tab completion > acts strange: nothing is echoed except the tab, yet completion > works, i.e. if I hit enter after this: > # ls G______ > , I can actually see the contents of directory GNUstep. In > addition, M-p and M-n to browse through the command history do not > work. > Google shows that someone posted the same question 1 year ago, but > there was no answer. The answer is: Eshell is not a terminal emulator. It does not attempt to interpret control characters sent from/to externally invoked programs. So, TAB is just TAB. Now, you can try setting `eshell-send-direct-to-subprocesses' to t, in which case the TAB will be sent immediately to the subprocess. If that process handles TAB, then it will provide its own completion. This command does not always do what you expect, so it will require some experimentation. You can also try adding the command to `eshell-visual-commands'. This will run it in an "ansi term" buffer, which also communicates directly with the subprocess. I use this for "ssh", for example. John