Editing /etc/profile, some doubts
Leandro Melo
ltcmelo at gmail.com
Sat Jan 29 12:09:18 UTC 2005
Hi, I want to add a folder to my PATH enviroment variable, then i
tought i could edit /etc/profile. However, Fedora's /etc/profile file
seems a little diferent from what i expected.
In fact, i don't know excatly where i should change it to add this new folder.
I could see this line in /etc/profile
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
I don't know much of shell scripting and i think i need to understand
better what i'll be doing here. The piece of code above just doesn't
seem to be where i need to insert my new folder , unh...?
Well, if anyone could help me here?
Maybe it's not even the best way to add folders to your path...?
--
Leandro
More information about the fedora-list
mailing list