[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Problem with /etc/profile



> I've got a weird problem with slackware-current that I'm trying to sort 
> out which I'm hoping someone can shed some light on. Whenever I edit 
> /etc/profile it doesn't actually do anything. Nothing is updated. The 
> only way I've actually been able to update my PATH is to create a 
> .bash_profile in my home directory which I don't really want to do. I 
> like to have everything running from /etc/profile so it's system wide 
> (apart from the root PATH obviously).

*dink* saw you post to AOLS as well, and that reminded me to look at 
following up here ...

One thing to look at - is $HOME/.profile || $HOME/.bash_profile || $HOME/
.{whatever other shell dot file exists} overwriting $PATH? 

What happens if you do a echo $PATH after changing PATH in /etc/profile? 
Does that come through okay?

Try:

$ . /etc/profile
$ echo $PATH

see if $PATH is what you expect ... if it is, then:

$ . $HOME/.profile
$ echo $PATH

to check any changes...similarly, do the latter with .bash_profile (and any 
other dot files).

Another thing to try; invoke bash at a prompt with "bash --login -v"... 
"--login" tells bash to start as if it were a login shell (so should parse /
etc/profile) ... "-v" is verbose. You'll soon find out what that does :) 
Use the output of the -v to try and debug what's going on ...

Chris...

-- 
\ Chris Johnson           \ NP: Enya - 10. Triad: St. Patrick, Cu Chulainn, 
 \ cej [at] nightwolf.org.uk    ~-----,  Oisin 
  \ http://cej.nightwolf.org.uk/  ~-----------------------------------, 
   \ Redclaw chat - http://redclaw.org.uk - telnet redclaw.org.uk 2000 \____


___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.