You are not logged in.
Pages: 1
Hi everybody,
I get the following output when evoking
$ echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core: No such file or directory
I looked through the files, ~/.xinitrc, ~/.bashrc, ~/.bash_profile, /etc/profile, /etc/profile.bash and a couple of *.sh in /etc/profile.d/.
I just can't figure out where there is something added to the PATH variable that shouldn't be added.
Is there some neat way of solving this problem? I need to add a path to my PATH variable in bash. And I seem to not be able to do so, till the above problem is solved. :(
Cheers,
Thomas
Last edited by friedrich (2009-05-20 15:05:10)
Offline
I am so sorry, this was a really stupid question. I forgot to put an echo in front of $PATH. Damn stupid, sorry.
The reason that I couldn't change my PATH variable was that I thought I had to put it the lines
PATH=$HOME/bin:$HOME/bin/stuff:$PATH
export PATH
in my .bash_profile rather than in my .bashrc. Damn it again. So now everything is fine. Sorry for the fuss again.
Cheers,
Thomas
Offline
Pages: 1