Red Hat Bugzilla – Bug 129526
bash handles 'r' vi binding command incorrectly at end-of-line
Last modified: 2007-11-30 17:10:47 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2)
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):
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.
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.
Thanks for the report. This is indeed a readline bug. Fixed package