| Summary: | enable "shopt -s checkwinsize" by default | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Sven <sven.koehler> |
| Component: | New packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Sven
2004-09-27 19:57:32 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. 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? 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. 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 $-). done already |