all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Madhusudan Singh <spammers-go-here@spam.invalid>
Subject: Re: Running bash inside emacs
Date: Tue, 03 May 2005 14:52:48 -0400	[thread overview]
Message-ID: <4277c7c8$0$79454$14726298@news.sunsite.dk> (raw)
In-Reply-To: 87mzrc88os.fsf@thalassa.informatimago.com

Pascal Bourguignon wrote:

> Madhusudan Singh <spammers-go-here@spam.invalid> 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.

  reply	other threads:[~2005-05-03 18:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-03 16:47 Running bash inside emacs Madhusudan Singh
2005-05-03 18:29 ` Pascal Bourguignon
2005-05-03 18:52   ` Madhusudan Singh [this message]
2005-05-03 19:13     ` Walker Pendleton
2005-05-03 19:57       ` Madhusudan Singh
2005-05-03 19:24     ` J. David Boyd
2005-05-03 22:53     ` Tim X
2005-05-04 10:11     ` Phillip Lord
2005-05-05 17:08       ` Kevin Rodgers
2005-05-03 19:06 ` Adrian Aichner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='4277c7c8$0$79454$14726298@news.sunsite.dk' \
    --to=spammers-go-here@spam.invalid \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.