bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bash 4.2.53 cursor position bug


From: gam
Subject: Bash 4.2.53 cursor position bug
Date: Thu, 02 Jul 2015 19:59:35 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]