Created attachment 1534866 [details] rl.c See attached sources readline: works libedit-3.1-26.20181209cvs.fc30 works libedit-3.1-24.20170329cvs.fc29 doesn't work Expected: $ ./rl + clean empty + fill and save it 0: foo 1: bar + clean empty + load 0: foo 1: bar Actual $ ./rl + clean empty + fill and save it 0: foo 1: bar + clean empty + load empty P.S. discovered by PHP test suite, and failing test case (ext/readline/tests/readline_read_history_001.phpt)
Addition different behavior, if you store "foo\n", the "\n" is removed by readline, not by libedit...
libedit-3.1-27.20190324cvs.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-e2103a77ec
The major problem here is that the version of libedit in F30+ is not backwards compatible with the version in F29, according to abipkgdiff. I've just updated F30 and F31 to the latest upstream release, but that does nothing for F29. To update F29, we would have to either audit all consumers of libedit to verify that they don't use the non-backwards-compatible portions of the library, or else rebuild all consumers. I, frankly, don't have time for either right now. If someone else wants to undertake one of those tasks, be my guest.
libedit-3.1-27.20190324cvs.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-e2103a77ec
libedit-3.1-27.20190324cvs.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.