Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172260 - app-shells/bash-3.2* mangled command history display
Summary: app-shells/bash-3.2* mangled command history display
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-26 04:42 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2007-03-26 16:53 UTC (History)
1 user (show)

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 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.