Bug 129526 - bash handles 'r' vi binding command incorrectly at end-of-line
Summary: bash handles 'r' vi binding command incorrectly at end-of-line
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2004-08-10 01:40 UTC by Paul Iadonisi
Modified: 2007-11-30 22:10 UTC (History)
0 users

Clone Of:
Last Closed: 2004-08-10 08:45:01 UTC

Attachments (Terms of Use)

Description Paul Iadonisi 2004-08-10 01:40:38 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2)
Gecko/20040803 Galeon/1.3.16

Description of problem:
The 'r' command of the vi editing mode when used on the last character
of a line, after modifying the last character then swaps the last two

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Launch a bash shell
2. Set editing mode to 'vi' with 'set -o vi'
3. Type any command, but don't hit return
4. Enter vi-command mode by hitting the escape key
5. Go to the end of line with the '$' command
6. Type 'r' to change the last character
7. Type any character (other than what the character already is)

Actual Results:  The last two characters are inexplicably swapped
after the last character is changed.

Expected Results:  The last two characters should not be swapped.

Additional info:

This probably a readline 5.0 bug, but since readline 5.0 is not
included as a separate component (yet), then I believe this belongs
here as a bash bug.

Comment 1 Tim Waugh 2004-08-10 08:45:01 UTC
Thanks for the report.  This is indeed a readline bug.  Fixed package
is bash-3.0-4.

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