Summary: | Bash 3.1 won't read my ~/.bash_profile (-/bin/bash doesnt start a login shell) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Avuton Olrich <avuton> |
Component: | New packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2005.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | bash-3.1-fix-dash-login-shell.patch |
Description
Avuton Olrich
2006-01-08 00:54:49 UTC
do you have a ~/.bash_login ? no... should I? no, but some people dont realize that .bash_profile and .bash_login are mutal exclusive bash-3.1 behaves for me at any rate: $ cd ~ $ mkdir old $ mv .bash_login .bash_profile old/ $ echo 'echo profile' > .bash_profile $ bash -l profile can you run the sample code i posted and see if it works for you Ok, that bit of code does work, so the problem is a bit different than I'm describing :/. When in gnu screen and I 'C-a C-c' or Create a new window with a shell and switch to that window, .bash_profile is not run like it was in 3.0. Created attachment 77179 [details, diff]
bash-3.1-fix-dash-login-shell.patch
ah, screen uses '-$SHELL' to start a login shell and there was a thread on bug-bash about this being broken ... can you try this attached patch please ?
Yay, That works, thanks! added to portage then, thanks for testing |