From owner-cvs-all Wed Aug 18 15:21:55 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 16148150A3; Wed, 18 Aug 1999 15:21:49 -0700 (PDT) (envelope-from green@FreeBSD.org) Received: from localhost (green@localhost) by freefall.freebsd.org (8.9.3/8.9.2) with ESMTP id PAA59709; Wed, 18 Aug 1999 15:19:06 -0700 (PDT) (envelope-from green@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: green owned process doing -bs Date: Wed, 18 Aug 1999 15:19:06 -0700 (PDT) From: "Brian F. Feldman" To: "David O'Brien" Cc: "Matthew N. Dodd" , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/contrib/libreadline FREEBSD-upgrade rlstdc.h CHANGELOG CHANGES MANIFEST Makefile.in README aclocal.m4 bind.c callback.c complete.c configure configure.in display.c funmap.c histexpand.c histfile.c histlib.h history.c history.h input.c ... In-Reply-To: <19990818150145.G59206@dragon.nuxi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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.: ifoAo would give you "fo" and ifooA would give you "foo" 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 correct. -- 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