[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bush-3.2 regression: breaked colour prompt.

From: Volkov Peter
Subject: bush-3.2 regression: breaked colour prompt.
Date: Sun, 18 Feb 2007 13:45:23 +0300


I use the following colored primary prompt string:
PS1="\[\033[01;32m\]\w \$\[\033[00;00m\] "

Then I create directory with russian name. (locale ru_RU.UTF8). If I cd
into directory in bash-3.1 everything works as expected but in bash-3.2
cursor became positioned N spaces after $ and every typed character
depart the previous the same N spaces. Well better to illustrate:

In bash-3.1:
~/tmp/bash/bash-3.1 $ mkdir тест
~/tmp/bash/bash-3.1 $ cd тест/
~/tmp/bash/bash-3.1/тест $ ls
~/tmp/bash/bash-3.1/тест $ #

In bash-3.2:
~/tmp/bash/bash-3.2 $ mkdir тест/
~/tmp/bash/bash-3.2 $ cd тест/
~/tmp/bash/bash-3.2/тест $                 l                s
~/tmp/bash/bash-3.2/тест $                 #

Where # denotes cursor position. You see that 'l' and 's' are separted
with 8 spaces and initial cursor position also separated from $ on 8

BTW. With PS1="\w \$ " everything works but there is no color :)


Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/home/peter/local/share/locale'
-DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib
-g -O2
uname output: Linux camobap 2.6.19-gentoo-r5-suspend2 #7 PREEMPT Sun Feb
11 19:07:33 MSK 2007 i686 Intel(R) Pentium(R) M processor 1700MHz
GenuineIntel GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 3.2
Patch Level: 0
Release Status: release

And please CC me to answers. Thank you.


Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

[Prev in Thread] Current Thread [Next in Thread]