2007-06-11 21:56:43 |
Daniel Hahler |
description |
Binary package hint: bash
Recipe to reproduce:
1. Set PS1:
$ PS1="\[\033[0;32m\]{ \[\033[0;32m\]\w\[\033[0;32m\] }\n\$\[\033[0m\] "
{ /tmp }
$ _
2. Type "ls ./_ /foo" ("_" is where the cursor should be, just after "./".
3. Press TAB twice.
A list of available files in the current directory should get displayed and the internal cursor position (and the cursor itself) gets moved 11 chars to the right.
This is what the prompt looks like then ("_": cursor):
{ /tmp }
$ ls ./ /foo _
It appears that this bug gets triggered by color/non-visible chars _and_ a newline (\n) in PS1.
This is with 3.2.17(1)-release (3.2-0ubuntu8).
If someone can confirm this I will send it upstream. |
Binary package hint: bash
Recipe to reproduce:
1. Set PS1:
$ PS1="\[\033[0;32m\]{ \[\033[0;32m\]\w\[\033[0;32m\] }\n\$\[\033[0m\] "
{ /tmp }
$ _
2. Type "ls ./_ /foo" ("_" is where the cursor should be, just after "./".
3. Press TAB twice.
A list of available files in the current directory should get displayed and the internal cursor position (and the cursor itself) gets moved 11 chars to the right.
This is what the prompt looks like then ("_": cursor):
{ /tmp }
$ ls ./ /foo _
It appears that this bug gets triggered by color/non-visible chars _and_ a newline (\n) in PS1.
This is with 3.2.17(1)-release (3.2-0ubuntu8) (backported from Gutsy).
If someone can confirm this I will send it upstream. |
|