On Wed, 18 Aug 1999, David O'Brien wrote:
> > > > Esc-k brings up the previous command ('ls')
> > > > 'A' moves the cursor to the end of the line.
> > > > backspace deletes the 's' of 'ls'.
> > >
> > > Give `toor' a password and login on the console.
> > Hummm... I get a BEL when I hit backspace. What is supposed to happen?
> libreadline would have backspaced over the 's'.
FWIW, the correct behavior seems to be to beep and complain rather than
accept the ^H. This is from my memory of how the vi standard dictates
the behavior, how nvi works, and how it coincides with libedit. The
proper behavior, IIRC, is such that backspace will only delete any text
in vi that has been typed during the same command. I.e.:
ifo<esc>Ao<bs> would give you "fo" and
ifoo<esc>A<bs> would give you "foo<beep>"
I'd prefer to keep in line with the vi standard for behavior rather than
how libreadline (and, btw, pdksh) make things more convenient/less
Brian Fundakowski Feldman / "Any sufficiently advanced bug is \
green@FreeBSD.org | indistinguishable from a feature." |
FreeBSD: The Power to Serve! \ -- Rich Kulawiec /
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message