On 4/27/15 1:26 PM, Martin Sebor wrote: > Bash Version: 4.3 > Patch Level: 33 > Release Status: release > > Description: > When the PROMPT_COMMAND variable is set to a command such a printf > it causes the cursor to jump to disappear or jump to the wrong > positions when typing text that spans more than physical terminal > line. The problem exists in at least Bash 4.2 and 4.3 (but likely > earlier versions as well).
This isn't exactly a bug. If readline doesn't know where the cursor is when it starts to perform redisplay, it's not going to be able to put the cursor in the right position. Readline assumes that cursor starts in column 0 and makes redisplay decisions based on that. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/