|
2009-02-07
, 15:16
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#2
|
The Following 4 Users Say Thank You to qwerty12 For This Useful Post: | ||
|
2009-02-07
, 15:29
|
|
Posts: 739 |
Thanked: 159 times |
Joined on Sep 2007
@ Germany - Munich
|
#3
|
|
2009-02-07
, 15:32
|
|
Posts: 739 |
Thanked: 159 times |
Joined on Sep 2007
@ Germany - Munich
|
#4
|
|
2009-02-07
, 15:41
|
Posts: 26 |
Thanked: 3 times |
Joined on Jan 2009
|
#5
|
Read man bash, section INVOCATION:
* bashrc is not sourced for interactive login shells, only for non-login shells
* profile is source for interfactive login shells
As everything inherits from login shells, the place for $PATH setting is in a profile file (/etc/profile, /etc/bash_profile or ~/.profile, ~/.bash_profile)
Then some distributions do not follow this, they source .bashrc within .profile but it's not a general rule.
The Following User Says Thank You to leohart For This Useful Post: | ||
|
2009-02-07
, 15:55
|
|
Posts: 739 |
Thanked: 159 times |
Joined on Sep 2007
@ Germany - Munich
|
#7
|
I just used to edit .bashrc under centos and it works fine ,so I dont know these stuff...
but I didnt login when I opened a xterminal, why it is a interactive login shell?
|
2009-02-07
, 15:57
|
|
Posts: 739 |
Thanked: 159 times |
Joined on Sep 2007
@ Germany - Munich
|
#8
|
|
2009-02-07
, 16:18
|
Posts: 26 |
Thanked: 3 times |
Joined on Jan 2009
|
#9
|
|
2009-02-07
, 16:57
|
|
Posts: 739 |
Thanked: 159 times |
Joined on Sep 2007
@ Germany - Munich
|
#10
|
so what should I do next?
ps: I have installed bash2, and it always shows full path before the prompt, this is really annoying when the path is very long, how can I make only the last dir is shown like a normal shell always does?
THX