From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Madhusudan Singh Newsgroups: gmane.emacs.help Subject: Re: Running bash inside emacs Date: Tue, 03 May 2005 14:52:48 -0400 Organization: Some Message-ID: <4277c7c8$0$79454$14726298@news.sunsite.dk> References: <4277aa50$0$79460$14726298@news.sunsite.dk> <87mzrc88os.fsf@thalassa.informatimago.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1115231500 15747 80.91.229.2 (4 May 2005 18:31:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 May 2005 18:31:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 04 20:31:39 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DTOe9-0007nu-SZ for geh-help-gnu-emacs@m.gmane.org; Wed, 04 May 2005 20:30:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTOlV-0004A0-68 for geh-help-gnu-emacs@m.gmane.org; Wed, 04 May 2005 14:38:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uio.no!news.banetele.no!dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: KNode/0.8.2 Original-Lines: 34 Original-NNTP-Posting-Host: 18.82.6.101 Original-X-Trace: news.sunsite.dk DXC=_]MeVe`3; H0IE=Lc_\oXE4YSB=nbEKnk; >IZWFTiRYX1]JlM^LamVS9<1KjZ4]GlX:8o^595Z9ok3k4AIH[KGDJ97LNE7NNU779I2^M`A6BVa6 Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:130627 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:26279 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26279 Pascal Bourguignon wrote: > 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. > > > Thanks for your response. I posted this question because I am not comfortable with the solution you showed. Typing in sort commands, etc. when you can just open up a native bash shell and use up/down keys to your heart's content, does not make any sense at all. This is especially important when you are debugging some code and need access to the shell, repeatedly. The solution you list would be a horrendous waste of typing and time in that case. Maybe it is time for a M-x bash RET.