Bugzilla – Bug 839132
bash: checkwinsize always off resulting unusable terminals
Last modified: 2014-01-15 09:49:41 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
Compare with bug #828877 *** This bug has been marked as a duplicate of bug 828877 ***
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.
(In reply to comment #2) it is fixed in factory ... I'll try to submit a new bash to 12.3
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