Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 172260

Summary: app-shells/bash-3.2* mangled command history display
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal CC: jakub
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-03-26 04:42:52 UTC
Bash 3.2.* still has some problems.

Steps to reproduce:
PS1="\e[36m[\e[34m\u\e[0m \e[32m\w\e[36m] \\$\e[0m "
LC_ALL="en_US.UTF8"
ls
echo ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
<Press up arrow twice>

Bash 3.1.* works correctly.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-03-26 10:15:40 UTC
I see that the summary was changed, but it isn't very relevant.

Steps to reproduce something different:
PS1="\e[36m[\e[34m\u\e[0m \e[32m\w\e[36m] \\$\e[0m "
LC_ALL="en_US.UTF8"
echo ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz <Don't press Enter, press Home>
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-03-26 10:20:38 UTC
Maybe bug #154062 isn't fully fixed yet?
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2007-03-26 16:53:15 UTC
I missed that myself but UPSTREAM answer was:

================================================================
> Steps to reproduce:
> PS1="\e[36m[\e[34m\u\e[0m \e[32m\w\e[36m] \\$\e[0m "

This is broken.  You need to bracket escape sequences with \[ \].
================================================================

And with the following prompt
PS1="\[\e[36m\][\[\e[34m\]\u\[\e[0m\] \[\e[32m\]\w\[\e[36m\]] \\$\[\e[0m\] "
I can not reproduce your bug.