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

Re: howto update PATH



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

En/La Ernst-Magne Vindal ha escrit, a 18/04/05 22:52:
| Hi, suddnely after a long time running 2.6.8 sarge I notice that it's not
| exporting PATH environment from .bash_profile. Even if i set it globally
| in /etc/profile it will not be exported. If I run the command PATH and
| export it manually its there untill next reboot.
|
| Current .bash_profile settings is :
|
| if [ -d ~/bin ] ; then
|     PATH="~/bin:${PATH}"
| fi
|
| umask 022
|
| Then I added
| export PATH
|
| This did not work either.
|
| Then I change the settings above to :
|
| PATH=$PATH:~/bin
| export PATH
|
| still not working....I also tryed the full path, changed ~/bin to
| /home/ernst/bin in both /etc/profile and .bash_profile
|
| The rights on that fle is
| ernst@mad $ ll .bash_profile
| -rw-r--r--  1 ernst ernst 400 2005-04-19 22:30 .bash_profile
| ernst@mad $
|
| I have the same .bash_profile on my desktop computer (this is a laptop)
| and its working fine there.
|
| any tips ??
|
| /ernst-magne
Hi Ernst-Magne,
I hope this isn't completely stupid, but shouldn't .bash_profile be
executable. (and .bashrc).
I had a similar problem and it was solved when I did this.

- -rwxrwxrwx  1 jdkaye jdkaye  818 2005-04-10 11:19 .bash_profile

Cheers,
Jonathan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCZLSj64+f0AXUe+4RAmBrAJ4hzHX78BIh8bCBPaPBihBZQKUxogCeODuk
GiB+fKX2CIFLKeWW7yhzttA=
=M00D
-----END PGP SIGNATURE-----



Reply to: