How do I add the current directory to $PATH

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


So that I could usea.out directly


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.

Generally adding . to your search path is a BAD thing. Esp. if you ever run the account with root privs. Big security problems ensue.