Okay, I did the follwing: > git clone https://git.savannah.gnu.org/git/bash.git > cd bash && git checkout devel > ./configure --prefix=/ --with-curses --enable-readline > make
I then changed the default shell (in gnome-terminal) to the newly built bash. > echo $BASH_VERSION 4.4.12(1)-maint Unfortunately, I am still getting the same behavior as before (This also happens with xterm for some reason.) On Sat, Jun 10, 2017 at 11:20 PM, Eduardo Bustamante <dual...@gmail.com> wrote: > On Sat, Jun 10, 2017 at 07:21:36PM +0200, Paul Peet wrote: >> If I understand this correctly this prompt (see below) shouldn't >> contain any invisible sequence, therefore it doesn't require the >> wrapping with \[ and \]. >> >> PS1="\u@\h\$" >> >> So bash should be able to correctly calculate the prompt size and >> such, but by resizing the window it still results in a corrupted >> buffer. >> >> I've uploaded another gif which shows this: >> https://media.giphy.com/media/xUA7biW8UtwYIU6ggg/giphy.gif > > I can't reproduce this with: > > > dualbus@debian:~/src/gnu/bash$ bash --version | head -n1 > GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu) > > dualbus@debian:~/src/gnu/bash$ xterm -version > XTerm(327) > > dualbus@debian:~/src/gnu/bash$ lsb_release -d > Description: Debian GNU/Linux 9.0 (stretch) > > > Can you reproduce the problem using a more recent version. Perphaps try > the `devel' branch from git? <https://savannah.gnu.org/git/?group=bash> > > -- > Eduardo Bustamante > https://dualbus.me/