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 [EMAIL PROTECTED] http://cnswww.cns.cwru.edu/~chet/ _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash