Re: wrong PS1 var width calculation

2008-12-06 Thread Chet Ramey
[EMAIL PROTECTED] wrote: > Bash Version: 3.2 > Patch Level: 39 > Release Status: release > > Description: > I have set PS1 var to this: > PS1='\[\033[01;[EMAIL PROTECTED];34m\] \w \[\e[1;33;40m\]$? > \$\[\033[00m\] ' > according to bash manual, if I use character like \e[1;33;4

wrong PS1 var width calculation

2008-12-06 Thread crquan
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPAC