Bug 233032 - Build libxml2 with readline support to enable history in xmllint shell
Build libxml2 with readline support to enable history in xmllint shell
Product: Fedora
Classification: Fedora
Component: libxml2 (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Daniel Veillard
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2007-03-19 19:06 EDT by William Graham
Modified: 2015-04-07 18:28 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-03-20 04:20:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description William Graham 2007-03-19 19:06:20 EDT
Description of problem:
I would like to see --with-history added to the configure options for libxml2 so
that there is history support when invoking 'xmllint --shell'.
Comment 1 Daniel Veillard 2007-03-20 04:20:55 EDT
The licence of readline is GPL, and even if only xmllint the program uses it,
I prefer to avoid compiling with it enabled, by default to avoid risk of using
it by mistake in the main library. So unless there is really strong demand for
this I would rather avoid using the GPL'ed library by default, if you have
an LGPL'ed or MIt or BSD like replacement I would be fine using that instead.

Comment 2 Tim Landscheidt 2008-04-03 13:43:35 EDT
To add to the strong demand: I'd prefer --with-history as well (and 
a "xmllint --command 'cat /a/b/c' file.xml" option, too, BTW :-)).

  If readline is not an option, have you had time to look at libedit? It is 
shipped with Fedora so there should not be much hassle.
Comment 3 Paolo Antinori 2015-04-07 18:28:25 EDT
I was looking for this some time ago.

Feature is still not there, but I have found a nice workaround based on `socat` that does not require to recompile `xmllint`

socat READLINE EXEC:'xmllint --shell pom.xml',pty

Note You need to log in before you can comment on or make changes to this bug.