[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wrong PS1 var width calculation
From: |
Cheng Renquan (程任全) |
Subject: |
Re: wrong PS1 var width calculation |
Date: |
Mon, 5 Jan 2009 09:41:29 +0800 |
On Tue, Dec 9, 2008 at 2:32 PM, Cheng Renquan <crquan@gmail.com> wrote:
> On Tue, Dec 9, 2008 at 11:40 AM, Chet Ramey <chet.ramey@case.edu> 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)-release (x86_64-pc-linux-gnu)
$ set |grep PS1
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
it's determined that if <C-r> (reverse-i-search) and <Left>, <Right>
used mixed, the bug will always reproduce,
I remembered a previous bash version (maybe bash-3.0, one or two years
ago) didn't have this problem, so this is a regression.
--
Cheng Renquan, Shenzhen, China
- Re: wrong PS1 var width calculation,
Cheng Renquan (程任全) <=