Bug 2134242

Summary: rlwrap repeating commands with readline 8.2
Product: [Fedora] Fedora Reporter: Jerry James <loganjerry>
Component: rlwrapAssignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 36CC: lieuwerooijakkers, michel
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: rlwrap-0.46.1-1.fc37 rlwrap-0.46.1-1.el9 rlwrap-0.46.1-1.el8 rlwrap-0.46.1-1.fc36 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-11 00:32:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jerry James 2022-10-12 22:27:09 UTC
Description of problem:
Ever since readline 8.2 arrived on my Fedora 36 box, rlwrap has been mangling commands after I hit return, making it hard to look back up the screen and tell what was going on.  For example, I commonly use rlwrap with metamath.

$ rlwrap metamath set.mm
MM> prove fmptd

That's what I typed at the metamath prompt.  Now I hit return and that changes to:

MM> provprove fmptd

Now I am at the proof assistant prompt, and type:

MM-PA> show new_proof

When I hit return, the text after the prompt changes to:

MM-PA> show neshow new_proof

etc.  This did not happen with readline 8.1.

Version-Release number of selected component (if applicable):
rlwrap-0.45.2-3.fc36.x86_64

How reproducible:
Always, so far.

Steps to Reproduce:
1. See the example above
2.
3.

Actual results:
Mangled output every time return is pressed.

Expected results:
Non-mangled output, as with readline 8.1 and earlier.

Additional info:

Comment 1 Lieuwe Rooijakkers 2022-12-17 14:52:03 UTC
Simple reproduction is:

    rlwrap -S'>' cat

Weird enough, this does not happen with

    rlwrap cat

Comment 2 Lieuwe Rooijakkers 2022-12-17 14:57:14 UTC
Upstream issue: https://github.com/hanslub42/rlwrap/issues/168

rlwrap 0.46.1 includes a fix.
https://bugzilla.redhat.com/show_bug.cgi?id=2136712 tracks updating rlwrap rpm to 0.46.1.

Comment 3 Fedora Update System 2023-02-09 19:06:07 UTC
FEDORA-EPEL-2023-f201157b07 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-f201157b07

Comment 4 Fedora Update System 2023-02-09 19:06:08 UTC
FEDORA-EPEL-2023-716a052eb1 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-716a052eb1

Comment 5 Fedora Update System 2023-02-09 19:06:09 UTC
FEDORA-2023-63c628c5a3 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-63c628c5a3

Comment 6 Fedora Update System 2023-02-10 00:31:29 UTC
FEDORA-2023-63c628c5a3 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-63c628c5a3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-63c628c5a3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2023-02-10 00:42:28 UTC
FEDORA-EPEL-2023-f201157b07 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-f201157b07

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2023-02-10 01:02:19 UTC
FEDORA-EPEL-2023-716a052eb1 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-716a052eb1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2023-02-10 01:55:52 UTC
FEDORA-2023-727c11cf83 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-727c11cf83`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-727c11cf83

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2023-02-11 00:32:03 UTC
FEDORA-2023-63c628c5a3 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2023-02-18 00:39:33 UTC
FEDORA-EPEL-2023-f201157b07 has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2023-02-18 01:02:00 UTC
FEDORA-EPEL-2023-716a052eb1 has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2023-02-18 01:27:25 UTC
FEDORA-2023-727c11cf83 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.