Re: Switching from tcsh to bash as an interactive shell

From: Christopher Browne (cbbrowne_at_acm.org)
Date: 09/16/04


Date: 16 Sep 2004 01:52:33 GMT

In an attempt to throw the authorities off his trail, ptb@oboe.it.uc3m.es (P.T. Breuer) transmitted:
> Chris F.A. Johnson <cfajohnson@gmail.com> wrote:
>> Both bash and tcsh have two types of history search; by default
>> tcsh binds history-search-backward to ^R (I'm using the bash name;
>> I don't know what tcsh calls it), whereas bash binds
>> reverse-search-history, which is an incremental search, to ^R.
>
>> If you want the tcsh behaviour in bash, all it takes is to put
>> this in your ~/.inputrc file:
>
>> C-r: history-search-backward
>
> Well, I put it there (I had Meta-p for that before). And I am no
> wiser. I start bash, I type "echo hi". Then I type "ec" and
> "ctrl-r" and nothing happens.
>
> I give up and type "esc-p" instead, and the "ec" disappears and a
> colon ":" appears. I type "h" and nothing happens.
>
> What kind of a ui is that? (rhetoric ..).

Actually, there's a straight answer to that.

Readline (which is probably what it _really_ comes from) supports two
user interfaces: one based on vi-like key commands, and one based on
Emacs. Emacs is the defalt.

-- 
let name="cbbrowne" and tld="ntlug.org" in String.concat "@" [name;tld];;
http://www3.sympatico.ca/cbbrowne/emacs.html
"Win32 sucks so hard it could pull matter out of a Black Hole."
-- Pohl Longsine