Mailinglist Archive: opensuse (714 mails)

< Previous Next >
Re: [opensuse] where can I change $PATH
* Anders Johansson <ajh@xxxxxxxx> [10-02-11 08:43]:

I think maybe you have misunderstood what $PATH is. You don't have binaries
in
that variable, you have directories which are to be searched for binaries. So
removing the old binary would mean removing the directory it is in, and then
you would lose every other binary in there.

The correct solution is the one you fould yourself, to add the new directory
where your new binary is, to $PATH, either first, or at least before the
directory where the old binary is

Or, quick/easy, simply add an alias to the user which calls the wanted app
by a different name or the same name and defines the *wanted* app.

~/.alias

alias [app-name]=/path/to/wanted-app

the aliased app will be called before bash accesses $PATH

When/if you decide which app is the more desirable, remove the unwanted
app and the alias (not really necessary but *cleaner*)..

--
(paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711
http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org openSUSE Community Member
Registered Linux User #207535 @ http://linuxcounter.net
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >