On Tue, 06 Jan 2004, Conor_D_Wynne at Dell.com wrote:
> Doesn't mean that it wont work though, the PATH that is.
>> vi it instead.
>> or simply test it first ;--)
>> so:
>> export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/local/bin
> And try a command, if successful, then edit the file yerself.
well, you'll have to either restart bash or have it re-read your .bashrc.
While this is a perhaps a temporary solution to your problem, it's a fairly
crap one. If root's path is still correct then the chances are that gets
set in /etc/profile for all users. Then some one of your user config files
(probably ~/.bashrc or ~/.bash_profile etc) is mangling it. If you add a
line to fix this, it'll only work if that line comes after the mangling and
you'll still be left with a rather silly situation where each time it
starts off good gets knackered and reset again. This renders useless the
/etc/profile.
It'd be better in the long run to find all mentions of PATH in your home
dir dotfiles, figure out which one is mangling the PATH and fix the line.
Of course if you use this solution to get a working path initially fair
enough.
Gavin
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!