Quote:
Originally Posted by
fritz_barnes
That is amazing to me, that the OS won't look in the current directory if it isn't in the path.
It's a conscious design, and a security feature. Many entry-level books explain this. As Zaxxon explains above, it would be frightfully easy to plant a trojan with the same name as a system command (say,
ls) in some shared directory, and then lure a user there, or just wait for it to happen.
On single-user systems (and/or systems where security is not seen as very important) you can obviously reason differently about this.