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