How do I add the current directory . to my path in .Profile
I used
export $PATH = $PATH:.:
and saved. This I want to do so that I dont have to use
$./a.out
So that I could usea.out directly
$a.out
but the above addition did not seem to work. It is how I do in Linux. Could any one help?
Thanks to all
It is export PATH=$PATH:.
Please note $ sign should not be prefixed to the variable name that is being exported. This is true for UNIX, Linux and QNX.
Please create a different thread if the question is different.
cdm
3
Generally adding . to your search path is a BAD thing. Esp. if you ever run the account with root privs. Big security problems ensue.