Discussion: to edit PATH
Afficher un message
Vieux 20/08/2006, 13h50   #4
Bruce Barnett
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: to edit PATH

"virus" <virus@clear.net.nz> writes:

> I'd like to write a script that adds the current directory to the line in .bash_profile.


Bad idea.

It's much safer to learn to type instead of
script
to type
./script

and once it's working, do
mv script ~/bin

(and have ~/bin in your search path)


I used a program called "ls" in my home directory that caught a lot of
people who put "." in their searchpath.


if you INSIST on doing it, make sure it's LAST in the path.



--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
  Réponse avec citation
 
Page generated in 0,05235 seconds with 9 queries