From owner-freebsd-current Mon Jul 16 3:19:50 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-62.dsl.lsan03.pacbell.net [63.207.60.62]) by hub.freebsd.org (Postfix) with ESMTP id 1731937B403; Mon, 16 Jul 2001 03:19:44 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id B49FD67378; Mon, 16 Jul 2001 03:19:33 -0700 (PDT) Date: Mon, 16 Jul 2001 03:19:32 -0700 From: Kris Kennaway To: David Malone Cc: Kris Kennaway , current@FreeBSD.ORG, brian@FreeBSD.ORG, imp@FreeBSD.ORG, ache@FreeBSD.ORG Subject: Re: libedit replacement for libreadline Message-ID: <20010716031932.A5930@xor.obsecurity.org> References: <20010716013127.A16058@xor.obsecurity.org> <20010716103351.A81876@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010716103351.A81876@walton.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Mon, Jul 16, 2001 at 10:33:51AM +0100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 16, 2001 at 10:33:51AM +0100, David Malone wrote: > On Mon, Jul 16, 2001 at 01:31:27AM -0700, Kris Kennaway wrote: >=20 > > I've just finished syncing up our libedit to the version in NetBSD, > > which includes a number of bugfixes, but perhaps more interestingly it > > can function as a drop-in (apparently binary compatible) replacement > > for GNU libreadline (unfortunately it's not binary compatible with our > > present libedit). >=20 > It doesn't actually impliment all of libreadline - just it's most > common uses. Last time I checked libedit couldn't emulate readline's > callback mode. I looked at implimenting the callback stuff, but it > would be really hard to do properly 'cos of how libedit is structured. > (In the end I hacked something together, but it's really ugly.) Hmm. We could easily provide a libreadline port for ports to use, as long as libedit does everything that's needed for the in-tree users (are there any others apart from bc and gdb?) The only danger is if future versions of those grow the need to use other parts of the API which we don't implement. The upside is that both the FreeBSD and NetBSD communities would be facing the same problem, meaning greater developer power to implement new features. Personally, I think it's worth it to get rid of a GNU dependency in the base system, as well as reducing the overall amount of functional code duplication. Kris --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7Ur+zWry0BWjoQKURAg3nAJ4qeYoctA5vU4wBBc6R9hmGy790+gCeIBkC UhO5Lmx80CznXMLX9HEaq8M= =Z3JA -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message