Re: Switching from tcsh to bash as an interactive shell

From: P.T. Breuer (ptb_at_oboe.it.uc3m.es)
Date: 09/16/04


Date: Wed, 15 Sep 2004 22:14:56 GMT

Ed L Cashin <ecashin@coraid.com> wrote:
> Tristan Miller <psychonaut@nothingisreal.com> writes:

> ...
> > Anyone care to clue me in as to some of the neato features bash has over
> > tcsh for command-line use?

> Yes, I have surprised several long-time bash users with a favorite
> trick: If you hit control-r, you get to interactively search the
> command-line history.

But isn't that what tcsh does? I search backwards all the time with
esc-p in tcsh. AFAIR, bash was particularly late in copying that feature of
tcsh (which is even a csh feature, where I think tab did the trick).

> > Any time-saving tricks or shortcuts I might otherwise overlook from
> > ten years of tcsh blinders?

Personally, I have never been able to make out how bash history
searching is supposed to work. The UI always leaves me confused and
helpless. Bits of command appear and disappear, and I don't know if one
is supposed to type or hit metakeys.

> I rarely have to do a "cd" because I use the history as above and the

So do tcsh users. Bash copied it.

> keystrokes that allow fast editing of the commandline. I guess you
> could do that in tcsh, but the control-r thing is what makes it
> practical for me.

You'll have to explain one more time how it works in bash to me. I warn
you that people have been trying to explain to me how bash's way of going
through the history is almost as good as tcsh's for years, and I always
have never got it and/or immediately forgotten it. In tcsh, it's easy -
you type a bit of a command, then hit esc-p to go up the history list
to the last command that started like that. Repeat until satisfied.

Peter



Relevant Pages

  • Re: TCSH and me!
    ... tcsh does have some interactive features that bash lacks. ... a command line, interrupt it to execute a command in the current ...
    (comp.unix.shell)
  • Re: TCSH and me!
    ... tcsh does have some interactive features that bash lacks. ... command in the current shell, and then continue typing the original ...
    (comp.unix.shell)
  • Re: TCSH and me!
    ... tcsh does have some interactive features that bash lacks. ... a command line, interrupt it to execute a command in the current ...
    (comp.unix.shell)
  • Re: OSR 6.0
    ... I have an SCO OSR 6 server and I would like the "history" feature like linux ... command line editing such as bash or ksh. ...
    (comp.unix.sco.misc)
  • Re: intelligent unix shells
    ... >> I issue the same command several times it still only shows up once as ... >> the last command in the history, ... question was about "unix shells(csh, bash, sh)". ...
    (comp.unix.shell)