On Tue, Nov 29, 2016 at 01:27:26PM +0500, Mihail Konev wrote:
> Buggy:
> PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[35m\]$MSYSTEM\[\e[0m\]
> \[\e[33m\]\w\[\e[0m\]\n\$ '
>
Not a buggy one.
It does not trigger the bug.
> Buggy (replace the ^-sequences in the second line):
> PS1="[\${PWD##*/}]\$ " # set the prompt
> PS1="^[]0;\$PWD^G^M$PS1" # set the window title
>
Turns out this was the only one buggy.
So it was all the (mis-) googled PS1 customizations,
that are actually incompatible with bash 3.2.0 and higher.