Activity log for bug #119938

Date Who What changed Old value New value Message
2007-06-11 21:56:08 Daniel Hahler bug added bug
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.
2007-06-11 21:57:05 Daniel Hahler title Another offset error with autocompletion (with newline in PS1) Offset error with autocompletion (with color+newline in PS1)
2007-07-11 21:29:24 Daniel Hahler bash: status New Confirmed
2007-07-11 21:29:24 Daniel Hahler bash: statusexplanation
2007-10-12 01:53:11 Daniel Hahler bug added attachment 'bash_3.2-0ubuntu12.dsc.diff' (debdiff for Gutsy)
2008-02-08 21:04:03 Matthias Klose bash: status Confirmed In Progress
2008-02-08 22:30:15 Launchpad Janitor bash: status In Progress Fix Released
2008-08-04 20:52:20 Arto Karppinen bash: status Fix Released New
2008-08-04 21:37:29 Anders Kaseorg bash: status New Incomplete
2008-08-05 07:34:39 Anders Kaseorg bash: status Incomplete Confirmed
2009-12-05 09:56:05 Launchpad Janitor branch linked lp:ubuntu/bash
2010-11-20 01:05:07 Anders Kaseorg bash (Ubuntu): status Confirmed Fix Released