GNOME Bugzilla – Bug 349002
redraw problems with bash rewrapping text when resizing terminal
Last modified: 2007-01-22 17:35:15 UTC
Reproduced. From https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=99445 One of the ways to reproduce one of this type problem: 1. set terminal window width to about 106 2. type long line vi /dcfdfdfd/fdfdfdfd/fdfdfdfdfd/fdfdfdfdfd/fdfdfddffdtr4trt/g.java so there may spaces between vi and file name such that the line wrapes. 3. Press enter, vi will be started. 4. exit from vi. 5. press arrow up, so the long command will show up again. 6. move cursor and put few more spaces (10-15) between vi and filename. 7. Increase terminal width to about 120-130. You will see garbage on screen, like this: vi /dcfdfdfd/fdfdfdfd/fdfdfdfdfd/fdfdfdfdfd/fdfdfddffdt fdtr4trt/g.javaaa (see garbage in the end of file name and etc.) Similar problems araise in many other situations.
Same bug reproduced with xterm and with konsole. So it has nothing to do with vte, it's a readline/bash bug.