Bug 839132 - bash: checkwinsize always off resulting unusable terminals
Summary: bash: checkwinsize always off resulting unusable terminals
Status: RESOLVED DUPLICATE of bug 828877
Alias: None
Product: openSUSE 12.3
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: All openSUSE 12.3
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Dr. Werner Fink
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-09 10:33 UTC by flo gleixner
Modified: 2014-01-15 09:49 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description flo gleixner 2013-09-09 10:33:02 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0

In /etc/bash.bashrc the shell option checkwinsize gets never switched on:

        # If COLUMNS are within the environment the shell should update
        # the winsize after each job otherwise the values are wrong
        case "$(declare -p COLUMNS 2> /dev/null)" in
        *-x*COLUMNS=*) shopt -s checkwinsize
        esac

The COLUMNS var is not exported, and therefore declare -p COLUMNS outputs:
declare -- COLUMNS="80"
and not
declare -x COLUMNS="80"

On SLES, Debian and Redhat the checkwinsize option is always switched on - so why not on opensuse?




Reproducible: Always

Steps to Reproduce:
1. open terminal with bash as shell, start vi
2. resize window
3. exit vi and then type something long in the terminal - looks totally broken!

Actual Results:  
broken

Expected Results:  
pretty
Comment 1 Dr. Werner Fink 2013-09-18 07:45:25 UTC
Compare with bug #828877

*** This bug has been marked as a duplicate of bug 828877 ***
Comment 2 flo gleixner 2013-09-26 23:41:08 UTC
Hmm. duplicate bug fixed something in 12.2, but bash from 12.3 has been build at Sun Jan 27 00:27:24 2013 so i guess these bugs are not fixed in 12.3?
As in comment https://bugzilla.novell.com/show_bug.cgi?id=828877#c9 it wont be fixed, which i cannot understand, and if so, this bug should be set to "wontfix"

Why does only opensuse not set this option by default. This makes OS look really broken.
Comment 3 Dr. Werner Fink 2013-09-27 06:51:17 UTC
(In reply to comment #2)

it is fixed in factory  ... I'll try to submit a new bash to 12.3
Comment 4 Axel Köllhofer 2014-01-15 09:49:41 UTC
First of all, thanks for posting the workaround in #828877, this was really an annnoying behavior.

Adding 

shopt -s checkwinsize

to /etc/bash.bashrc.local does the job.

But there has no update been released for 12.3 yet, so ....

*PING*

Greetings,

AK