Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
.bashrc not processing?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mK
Guest





PostPosted: Tue May 28, 2002 2:00 pm    Post subject: .bashrc not processing? Reply with quote

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
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Tue May 28, 2002 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Tue May 28, 2002 7:48 pm    Post subject: Re: .bashrc not processing? Reply with quote

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
Code:
useradd -m joe

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





PostPosted: Tue May 28, 2002 11:52 pm    Post subject: Reply with quote

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
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Wed May 29, 2002 10:57 am    Post subject: Reply with quote

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. 8O

Cya lX
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
mK
Guest





PostPosted: Wed May 29, 2002 6:08 pm    Post subject: Reply with quote

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
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum