July 2, 2015
Bash version: 4.2.53
Hardware: Intel(R) Core(TM)2 Quad CPU Q9550
Operating System: opensuse 13.2 (All patches applied)
uname -s -r -m -o: Linux 3.16.7-21-desktop x86_64 GNU/Linux
Bug behavior: Input line cursor position is incorrect after moving the
cursor with Ctrl+a, Ctrl+e, Home and End keys. Problem
occurs in emacs and vi editing modes.
"Recipe" to illustrate the problem:
I will use the '^' character on the following line to indicate the
cursor position. BOL = Beginning of Line, EOL = End of Line.
Mode is emacs for this example.
PS1="\W\$ "
1. Type a short input line
/~$ just a line for illustration
^
Enter Ctrl+a or HOME to move the cursor to BOL.
/~$ just a line for illustration
^ Note that the cursor is one character before BOL.
Enter Ctrl+e or End
/~$ just a line for illustration
^ Cursor is at end of word, not EOL.
Enter a character, I used 'x'.
/~$ just a line for illustratioxn
^
The character is inserted at the cursor, which is correct. but
not appended which is what should have happened.
Note: This problem does not exist with bash 4.1.10 in opensuse 11.4.
Thanks for looking,
Gary