Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: modifying $PATH, path resets with startx?< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 11 2004,15:07 QUOTE

<VOICE SRC="homestar">I think I has the solution!</VOICE>
For some reason, /etc/bash.bashrc sources /etc/profile, which in turn resets the PATH variable.
I dunno why it does this, though...it pretty much removes the whole point of having separate login and non-login shells.  /etc/profile is already used when you login, so there's no point in sourcing it for non-login shells as well...it only makes things less versatile.
I could understand doing it the other way around, sourcing bashrc from profile so you can get all settings for a login shell, but the current setup is unnecessary since the settings are already available for child shells.

There is also both /etc/bash.bashrc and /etc/bashrc.  It seems that /etc/bashrc is unused, but I'm not sure of this.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
5 replies since Sep. 10 2004,19:08 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: modifying $PATH

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code