On Wednesday 01 September 2004 17:25, you wrote:
Yes, you should and that is what you will do by adding the $PATH as described below, but the way I describe is automatic and for *all* consoles and term windows.
The reason that you did not maintain the added $PATH was that you only added it for the console or term window you initiated it inside. Once you close that window, you loose any environment changes (they are LOCAL - no other session can see them).
What entries do I need to make?
as root make a file /etc/profile.local with the content:
export PATH=$PATH:/usr/gnat/bin
Then each console or term window you open with any user with an account on that computer will have /usr/gnat/bin as an element of his path (unless you add more later, the last element).
If you feel it important to access that element of the path earlier, move $PATH to the end, but that will cause a search of the $PATH to look in /usr/gnat/bin *every* time it consults the PATH to satisfy only one program.
note: as this discussion began on the list, it should be continued on the list as others may be interested. I have posted to the list in addition to a personal copy to you.
Many thanks Patrick, that works a treat. Sorry about not posting to the list, but I just joined it today and didn't realise that the reply address was direct to yourself.