Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 204831 - bash-3.2_p17-r1. - wrong cursor position after tab completion (colored prompt)
Summary: bash-3.2_p17-r1. - wrong cursor position after tab completion (colored prompt)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-07 22:27 UTC by Fabio Rossi
Modified: 2008-01-08 06:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2008-01-07 22:27:18 UTC
I'm using the last stable bash-3.2_p17-r1. The wrong behavior depends on the length of the command line. I used normal ASCII characters. 

Reproducible: Always

Steps to Reproduce:
1.write a dummy string with a certain length (23 'k' in my case is enough)
2.position the cursor on the second character

kkkkkkkkkkkkkkkkkkkkkk

 ^-- here
 
3. press TAB for the completion action

Display all 281 possibilities? (y or n)
<< Press n >>


Actual Results:  
The cursor position is totally wrong.

Expected Results:  
The cursor should be at the initial position.

If the prompt is not colored (PS1='\u@\h \w \$ ') the problem disappear. The colored prompt is PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \$\[\033[00m\] '
Comment 1 Fabio Rossi 2008-01-07 23:56:27 UTC
The problem is resolved by bash patch 27 described here:
http://lists.gnu.org/archive/html/bug-bash/2008-01/msg00005.html

I tried installing the patch against the current stable version of bash with a custom ebuild.

This bug should depend on an app-shells/bash-3.2_p33 stabilization bug which doesn't exist yet
Comment 2 SpanKY gentoo-dev 2008-01-08 06:08:08 UTC
bash-3.2_p33 is in the tree already