This has got to be a silly question...
From a terminal window, to start emacs which comes with mac osx (version 22.1.1), I just type
First set of questions: where is this emacs installed? where is the alias defined?
Now, I just discovered (!) how old this version is, and so I installed the latest version from http://emacsformacosx.com. When I type
I still launch the old version (22.1.1) and not the new one. On the other hand, if I type in a terminal window
open -a emacs
then the new version (25.3.1) is launched.
Second set of questions: why is that? where is the alias for this other emacs? how does the system choose which version to launch?