From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: Running bash inside emacs Date: Tue, 03 May 2005 20:29:23 +0200 Organization: [posted via Easynet Spain] Message-ID: <87mzrc88os.fsf@thalassa.informatimago.com> References: <4277aa50$0$79460$14726298@news.sunsite.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115230750 13019 80.91.229.2 (4 May 2005 18:19:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 May 2005 18:19:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 04 20:19:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DTOSX-0006BA-TU for geh-help-gnu-emacs@m.gmane.org; Wed, 04 May 2005 20:18:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTOZt-0003OB-U5 for geh-help-gnu-emacs@m.gmane.org; Wed, 04 May 2005 14:26:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!newsfeed.cineca.it!news.mailgate.org!newsfeed.stueberl.de!feed.news.tiscali.de!easynet-monga!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:dkwmXylCpFTuD/dqHqlGVKF7XqE= Original-Lines: 25 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=UK[JZF:=7Yl[4OH7ShgbIe>V:nI?;b`^lbBd4DjF1d]a Original-Xref: shelby.stanford.edu gnu.emacs.help:130625 Original-To: help-gnu-emacs@gnu.org 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:26277 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26277 Madhusudan Singh writes: > I was wondering if it is possible to run a bash shell inside an emacs > buffer (where the up and down keys recall commands executed > in .bash_history and do not move the cursor around -- the problem with the > native shell available in emacs, tab results in command completion, etc.). M-x shell RET Since emacs implement its own history and completion, the keys are usually bound to emacs functions, and not passed to the inferior shell. If you want to run an old command from ~/.bash_history, you could type: sort -u < ~/.bash_history then move to the line with the command and type RET. -- __Pascal Bourguignon__ http://www.informatimago.com/ Cats meow out of angst "Thumbs! If only we had thumbs! We could break so much!"