Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65623 - enable "shopt -s checkwinsize" by default
Summary: enable "shopt -s checkwinsize" by default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-27 19:57 UTC by Sven
Modified: 2004-10-14 16:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven 2004-09-27 19:57:32 UTC
Hi,

for some reason, bash's developers decided to not enabled "checkwinsize" by default. Take a look at E11 to see what problem there is, if it is disabled.

Since checkwinsize is an options which solves some problems, it should perhaps be enabled by default, for example by /etc/profile or /etc/bashrc.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2004-09-28 04:47:02 UTC
Good idea.  Fixed in portage, but didn't bother to rev-bump bash to push it out.  This can go out gradually, or with the next necessary bash bump.
Comment 2 Sven 2004-09-28 11:08:01 UTC
i just tested the new bashrc, but i think that /etc/bash/bashrc is the wrong place. bash doesn't seem to execute /etc/bach/bashrc if bash is started as a login-shell. For example screen does start a login-shell, so the option will be disabled for any screen-session.

How about putting it in /etc/profile?

But when it is in /etc/profile and not in /etc/bash/bashrc, it won't be enabled for interactive shells, right?
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-09-28 11:39:06 UTC
It's not appropriate for /etc/profile because that file only runs for login shells.  See bug 26952

However I think there is still a hole in our skel files.  ~/.bash_profile should be sourcing /etc/bash/bashrc prior to sourcing ~/.bashrc

I'll have to look more closely to make sure I've got this right.
Comment 4 Sven 2004-09-28 12:27:34 UTC
I don't like it when things would be handles by user-specific files /skel files.

On the other hand, ~/.bash_profile is also sourced for any login-shell, so putting it into ~/.bash_profile would be simular to putting it to /etc/profile.

Wouldn't it be better, if /etc/profile would source /etc/bash/bashrc?

just to get that straight:
login-shell -> /etc/profile is sourced, but not /etc/bash/bashrc
inetractive-shell -> /etc/bash/bashrc is sources, but not /etc/profile

So any login-shell (for example the shell on the text-console) will not have the settings made in /etc/bash/bashrc, although it is interactive (according to $-).
Comment 5 SpanKY gentoo-dev 2004-10-14 16:03:49 UTC
done already