Xref: utzoo comp.unix.amiga:1073 comp.unix.shell:2494 Newsgroups: comp.unix.amiga,comp.unix.shell Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!thor!chet From: chet@thor.INS.CWRU.Edu (Chet Ramey) Subject: Re: ksh vs csh (was Re: SVR4 /bin/sh BUG) Message-ID: <1991Jun23.031208.8799@usenet.ins.cwru.edu> Sender: news@usenet.ins.cwru.edu Nntp-Posting-Host: thor.ins.cwru.edu Reply-To: chet@po.CWRU.Edu Organization: Yoyodyne Propulsion Systems, Inc. References: <1991Jun18.023211.25558@msuinfo.cl.msu.edu> Date: Sun, 23 Jun 91 03:12:08 GMT Lines: 27 det@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@po.CWRU.Edu Case Western Reserve University NeXT Mail: chet@macbeth.INS.CWRU.Edu