LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Commands have stopped working

[ILUG] Commands have stopped working

Conor_D_Wynne at Dell.com Conor_D_Wynne at Dell.com
Tue Jan 6 13:24:49 GMT 2004


>> export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/local/bin
>> And try a command, if successful, then edit the file yerself.

you wrote: 

> well, you'll have to either restart bash or have it re-read
> your .bashrc.
> 

Well if you export a path, its instant, no need to restart bash. In fact,
I'd say if you restarted bash then it'll read the file again and you will
likely loose the current path. Never tested this but I know that the path is
instant. Certainly if you do an "su -" it will re-read it.

> 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.

Agreed 

> 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

Agreed.

Guess I'm not disagreeing with ya at all here ;--0
Off to the dentist now, cant wait, what a bunch of great people they are,
thrilled!

Later.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell