View previous topic :: View next topic |
Author |
Message |
mK Guest
|
Posted: Tue May 28, 2002 2:00 pm Post subject: .bashrc not processing? |
|
|
hi guys.
was trying to figure out why my ~/.bashrc is not being processed by default with a vanilla gentoo install. Got around the problem by moving the file to ~/.bash_profile but i'm wondering what the deal is.
i've got 3 gentoo boxes running, all of them ignore .bashrc files; i'm sure its a setting that i'm not aware of, i'm more curious as to the reasons that gentoo did this...its a pretty standard thing to do.
Thx |
|
Back to top |
|
 |
craftyc Guru

Joined: 23 May 2002 Posts: 443 Location: Behind You.
|
Posted: Tue May 28, 2002 7:29 pm Post subject: |
|
|
This behaviour doesn't occur with me. I have both .bash_profile and .bashrc in my home directory and .bashrc gets picked up. Very strange behaviour.
What does your .bash_profile read? This is what mine looks like
Code: | #This file is sourced by bash when you log in interactively.
[ -f ~/.bashrc ] && . ~/.bashrc
eval `dircolors -b`
alias d="ls --color"
alias ls="ls --color=auto"
alias ll="ls --color -l"
|
Hope this helps. _________________ Postcount ++ |
|
Back to top |
|
 |
Guest
|
Posted: Tue May 28, 2002 7:48 pm Post subject: Re: .bashrc not processing? |
|
|
mK wrote: | hi guys.
i've got 3 gentoo boxes running, all of them ignore .bashrc files; i'm sure its a setting that i'm not aware of, i'm more curious as to the reasons that gentoo did this...its a pretty standard thing to do.
Thx |
I had a similar problem with a new user that I created via
It turns out that since I did not specify a shell, it chose /bin/sh for that user by default. I changed the user's shell to /bin/bash and then everything was fine.
One curious note is that /bin/sh is a symbolic link to /bin/bash. |
|
Back to top |
|
 |
mK Guest
|
Posted: Tue May 28, 2002 11:52 pm Post subject: |
|
|
lol, i dont have my laptop in front of me to double check that but that sounds dead on.
thx guest. i'll confirm this tomarrow while at work... |
|
Back to top |
|
 |
lx Veteran


Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Wed May 29, 2002 10:57 am Post subject: |
|
|
should be copied from /etc/skel ????, well anyway in .bash_profile there is a reference to .bashrc (see other post) so that's the trick.
Cya lX _________________ "Remember there's a big difference between kneeling down and bending over.", Frank Zappa |
|
Back to top |
|
 |
mK Guest
|
Posted: Wed May 29, 2002 6:08 pm Post subject: |
|
|
yup, passwd actually didnt have a shell specified at all, defaulting to /bin/sh. setting it to /bin/bash made things Good and Pure.
thx for the tip.. and does gentoo have a bugzilla? this is really an oversight that should be unfubared imo. |
|
Back to top |
|
 |
|