Stephen,
> Slightly peripheral to this discussion, but I want to note that
> we--John Beck, precisely--specifically evaluated and introduced
> libtecla as a less aggressively licensed option. zonecfg and svccfg
> use it for their command-line interaction.
while this is fine for new code, libtecla isn't API-compatible with
libreadline, so this may require major surgery to foreign code for no gain
in functionality. The PostgreSQL documentation suggests another approach:
NetBSD is claimed to have a libedit that is compatible with libreadline and
thus should be a drop-in replacement, but without the GPL problems.
I haven't checked this and have no idea how far this compatibility goes and
if libhistory is covered as well. If it is incomplete, I wouldn't bother
to introduce yet another library for the same purpose.
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University