Re: Another bash-3.2 regression: coloured prompt confuses Ctrl+R.
From:
Chet Ramey
Subject:
Re: Another bash-3.2 regression: coloured prompt confuses Ctrl+R.
Date:
Wed, 28 Mar 2007 22:21:46 -0400
User-agent:
Thunderbird 1.5.0.10 (Macintosh/20070221)
Volkov Peter wrote:
> Hello.
>
> The issue was reported at http://bugs.gentoo.org/156292 and is still
> reproducible in bash-3.2 patch level 10 and with redisplay-cursor-patch.
>
> To save you time steps to reproduce the problem:
> 1. Set PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
> 2. cd /usr/share
> 3. press <ctrl>+R, then press letter 'e' and press <Home> button.
>
> Cursor appears at the first position in the line (the most left column).
I can't reproduce this with bash-3.2.15 and Fedora Core 5 in a Parallels
VM, with the Home key bound to beginning-of-line.
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/