Bug 855660 - bash fail display properly when windows is resized
Summary: bash fail display properly when windows is resized
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Roman Rakus
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-09 17:02 UTC by melanphos
Modified: 2014-01-13 00:14 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-09-10 13:10:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.