Red Hat Bugzilla – Bug 525474
bash/readline not detecting window resize properly
Last modified: 2014-01-12 19:09:51 EST
Description of problem: bash/readline not detecting window resize properly Version-Release number of selected component (if applicable): bash 3.2-24 How reproducible: 100% Steps to Reproduce: 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 Actual results: vi /dcfdfdfd/fdfdfdfd/fdfdfdfdfd/fdfdfdfdfd/fdfdfddffdt fdtr4trt/g.javaaa Expected results: vi /dcfdfdfd/fdfdfdfd/fdfdfdfdfd/fdfdfdfdfd/fdfdfddffdt fdtr4trt/g.java Additional info: Fixed in bash4.0/readline 6.0
This request was evaluated by Red Hat Product Management for inclusion, but this component is not scheduled to be updated in the current Red Hat Enterprise Linux release. If you would like this request to be reviewed for the next minor release, ask your support representative to set the next rhel-x.y flag to "?".
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
Should be fixed in bash-3.2-29.el5. Can you please check this version? I have done a bit testing, but I'd like to be more sure if it doesn't introduce any more glitches.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Bash's readline incorrectly displayed text when resizing the terminal window when text was on more than one line. This is now fixed to ensure that text in more than one line in a resized window displays as expected.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1 +1 @@ -Bash's readline incorrectly displayed text when resizing the terminal window when text was on more than one line. This is now fixed to ensure that text in more than one line in a resized window displays as expected.+Bash's readline incorrectly displayed additional text when resizing the terminal window when text spanned more than one line, which caused incorrect display output. This is now fixed to ensure that text in more than one line in a resized window displays as expected.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-1073.html