Re: wrong PS1 var width calculation

2009-01-05 Thread Chet Ramey
> On Tue, Dec 9, 2008 at 2:32 PM, Cheng Renquan wrote: > > On Tue, Dec 9, 2008 at 11:40 AM, Chet Ramey wrote: > >> Investigate patch 44. It should fix this. > > > > From where? All bash patches are available from ftp.cwru.edu and ftp.gnu.org. Try ftp://ftp.cwru.edu/pub/bash/bash-3.2-patches/.

Re: wrong PS1 var width calculation

2009-01-04 Thread Cheng Renquan (程任全)
On Tue, Dec 9, 2008 at 2:32 PM, Cheng Renquan wrote: > On Tue, Dec 9, 2008 at 11:40 AM, Chet Ramey wrote: >> Investigate patch 44. It should fix this. > > From where? > > Or please tell a bash repository version, I'll test it. I'm using the latest gentoo with GNU bash, version 3.2.33(1)-rele

Re: wrong PS1 var width calculation

2008-12-09 Thread Roman Rakus
Cheng Renquan wrote: On Tue, Dec 9, 2008 at 11:40 AM, Chet Ramey <[EMAIL PROTECTED]> wrote: Investigate patch 44. It should fix this. From where? From ftp://ftp.gnu.org/gnu/bash/bash-3.2-patches/ Or please tell a bash repository version, I'll test it. Chet -- ``The lyf so s

Re: wrong PS1 var width calculation

2008-12-08 Thread Cheng Renquan
On Tue, Dec 9, 2008 at 11:40 AM, Chet Ramey <[EMAIL PROTECTED]> wrote: > Investigate patch 44. It should fix this. >From where? Or please tell a bash repository version, I'll test it. > > Chet > > -- > ``The lyf so short, the craft so long to lerne.'' - Chaucer > > Chet Ramey, ITS, CWRU[EMA

Re: wrong PS1 var width calculation

2008-12-08 Thread Chet Ramey
Cheng Renquan wrote: > On Sun, Dec 7, 2008 at 8:33 AM, Chet Ramey <[EMAIL PROTECTED]> wrote: >> [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

Re: wrong PS1 var width calculation

2008-12-08 Thread Larry Clapp
On Mon, Dec 08, 2008 at 11:34:21PM +0800, Cheng Renquan wrote: > On Mon, Dec 8, 2008 at 9:22 PM, Larry Clapp <[EMAIL PROTECTED]> wrote: > > On Mon, Dec 08, 2008 at 07:29:14PM +0800, Cheng Renquan wrote: > >> BTW, someone know a good screen record software under Linux please > >> suggest it to me, I

Re: wrong PS1 var width calculation

2008-12-08 Thread Cheng Renquan
On Mon, Dec 8, 2008 at 9:22 PM, Larry Clapp <[EMAIL PROTECTED]> wrote: > On Mon, Dec 08, 2008 at 07:29:14PM +0800, Cheng Renquan wrote: >> BTW, someone know a good screen record software under Linux please >> suggest it to me, I will record a video to show this bug clearly, > > I think you want scr

Re: wrong PS1 var width calculation

2008-12-08 Thread Larry Clapp
On Mon, Dec 08, 2008 at 07:29:14PM +0800, Cheng Renquan wrote: > BTW, someone know a good screen record software under Linux please > suggest it to me, I will record a video to show this bug clearly, I think you want script(1): NAME script - make typescript of terminal session SYNOPSI

Re: wrong PS1 var width calculation

2008-12-08 Thread Cheng Renquan
On Sun, Dec 7, 2008 at 8:33 AM, Chet Ramey <[EMAIL PROTECTED]> wrote: > [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\]$? >> \$\[

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