I'm trying to understand the whole $PATH problem but I've got no luck so far. Suppose that I've just compiled an executable with make and I need to launch it with the shell without using the full path. Well the problem is that I don't fully understand all these "add to path" things.
My idea is that if the terminal reads on specific folders, why don't we just put all the application files to this folder?
Why don't we add the whole Applications folder to the list of folder that the terminal goes to open an application?
open -a Safari
, doman open
to find out more.