ksh vs csh (was Re: SVR4 /bin/sh BUG)

Chet Ramey chet at thor.INS.CWRU.Edu
Sun Jun 23 13:12:08 AEST 1991


det at hawkmoon.MN.ORG (Derek E. Terveer) writes:

>Unfortunately, bash does have a few features that are in itself irritating to a
>ksh user.  For example, no support for the ksh "r pattern" command to repeat a
>command starting with "pattern".

Nonsense.  The support is there for the `fc' command, all you have to do
is define the alias r as `fc -s' or `fc -e -'.  That's how it's done in
ksh, with the exception that ksh pre-defines the alias.

>The kill character is *hardcoded* to be ^U!

Nonsense again.  Readline, the bash line editing library, has support for
arbitrary key bindings.  Simply bind some other key to "unix-line-discard"
and bind ^U to whatever you like.  In any case, readline will pick up your
kill character from the tty driver and bind that to unix-line-discard for
you.

Chet


-- 
                    ``You shoot John Sununu.  Twice.''

Chet Ramey			  Internet: chet at po.CWRU.Edu
Case Western Reserve University	  NeXT Mail: chet at macbeth.INS.CWRU.Edu



More information about the Comp.unix.shell mailing list