Bug 855660

Summary: bash fail display properly when windows is resized
Product: [Fedora] Fedora Reporter: melanphos
Component: bashAssignee: Roman Rakus <rrakus>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: maxamillion, ooprala, rrakus, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-10 13:10:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description melanphos 2012-09-09 17:02:44 UTC
Description of problem:
In some condition, bash dont display a new line while editing long commands

How reproducible:
Each time

Steps to Reproduce:
1. open a virtual terminal not maximized
2. start something like vi
3. maximize the virtual tty with alt + F10
4. quit vi
5. try write a very long command

Actual results:
bash display something like :

"end of commandend of prompt $ begin of the very long command"
Expected results:
"begin of prompt end of prompt $ begin of the very long command
end of command"

Fix:
The problem is fixed with setting the checkwinsize option. With should be done by default.
with 
shopt -s checkwinsize

the problem is better described here:
https://blogs.oracle.com/dp/entry/why_bash_doesn_t_work

Comment 1 Roman Rakus 2012-09-10 13:10:37 UTC
checkwinsize option is set on in /etc/bashrc. That file is part of setup package. And because it is set there, I'm closing this bug as not a bug.