I want to add /home/myname/adt-bundle-linux-x86_64-20130219/eclipse
to PATH.
I edited .profile:
PATH="$HOME/bin:$PATH:/home/myname/adt-bundle-linux-x86_64-20130219/eclipse"
but it won't work. Why?
When I instead save export PATH=/home/myname/adt-bundle-linux-x86_64-20130219/eclipse:$PATH
in a file in /etc/profile.d/
and do chmod a+x
it works.
Both should work. I would like to understand why the first option does not work.
export
to.profile
as well?$PATH
?