[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bush-3.2 regression: breaked colour prompt.
From: |
Chet Ramey |
Subject: |
Re: bush-3.2 regression: breaked colour prompt. |
Date: |
Fri, 23 Feb 2007 16:43:55 -0500 |
User-agent: |
Thunderbird 1.5.0.9 (Macintosh/20061207) |
Volkov Peter wrote:
> Hello.
>
> 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
> spaces.
>
> BTW. With PS1="\w \$ " everything works but there is no color :)
I can't reproduce this on Mac OS X, using Terminal or xterm. I will
look further when I have access to a Linux machine.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/