As far as I know, the only use of ./ is in running an executable from the current directory. If I want to copy a file, I type something like:
cp fred jim
If I want to test a new variant called cp in my current directory, I type:
./cp fred jim
If . were included in PATH, then
cp fred jim
would run the local code, not the system command. This gives an interesting opportunity for hackers for installation of malicious code.
|