History (readline?) problem with color prompt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Binary package hint: gnome-terminal
I think I've hit a readline problem (if Terminal uses it) that makes long lines and color prompts very hard to use at the same time. This never happened before Feisty.
version: gnome-terminal 2.18.0-0ubuntu1
To reproduce:
1. put up a simple color prompt, like:
PS1=
2. type or paste a long line, like:
echo '12345678912345
3. don't execute it, but instead press Home to position the cursor on the beginning of the line
4. notice the cursor is *not* at the beginning!
5. press End to position the cursor at the end of the line
6. the cursor is now too far on the right!
7. try to delete all the characters (Backspace) - you won't be able to!
8. put up a non-colored prompt, like:
PS1='\w # '
9. try to repeat the steps above - it works fine now.
This bug does not only break Home and End in the terminal; it also manifests itself when revoking long lines from history (UP key).
ProblemType: Bug
Architecture: i386
Date: Wed Apr 25 22:56:01 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/
Package: gnome-terminal 2.18.0-0ubuntu1
PackageArchitec
ProcCmdline: gnome-terminal
ProcCwd: /home/mislav
ProcEnviron:
PATH=/
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gnome-terminal
Uname: Linux Goliath 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux
Confirmed for bash, rejecting for gnome-terminal.
hggdh@xango:~$ PS1='work: \e[0;31m\ w\e[m # ' pc-linux- gnu) Unknown/ Install/ Remove/ Purge/Hold Not/Installed/ Config- files/Unpacked/ Failed- config/ Half-installed /Hold/Reinst- required/ X=both- problems (Status,Err: uppercase=bad) ======= ======= =====-= ======= ======= ======= -====== ======= ======= ======= ======= ======= ======= ======= =====
work:~ # bash --version
GNU bash, version 3.2.13(1)-release (x86_64-
Copyright (C) 2005 Free Software Foundation, Inc.
work:~ # dpkg -l bash\*
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii bash 3.2-0ubuntu7 The GNU Bourne Again SHell
un bash-builtins <none> (no description available)
un bash-completion <none> (no description available)
ii bash-doc 3.2-0ubuntu7 Documentation and examples for the The GNU Bourne Again SHel
un bash-minimal <none> (no description available)
un bash-static <none> (no description available)
un bashdb <none> (no description available)
work:~ #