EDIT : actually, it is not an alias (see answers)
As you all know, in a shell, the dot-command (.
) is an alias to the source command.
But I wonder if there's a reason behind such a weird alias? Apparently, I don't use it so often that I would need such a short alias.
So, why a dot? And why for source
and not a more commonly used command such as cd
or ls
? Why even an alias? Is there a good reason behind that? Or is there a historical reason?
NOTE: I originally posted this question on Server Fault but I was suggested to post it here instead.
.
is not an alias in the first place; nor is it a secondary name. This question takes a falsehood as its premise and, as demonstrated by the answers so far, is unanswerable except to say that the question is wrong, as such loaded questions are.alias source
andalias .
in order to know which one was the alias of the other but got no response from the command line. Now I understand why. Hence, I supposed that.
was the alias because it was the shortest. I edited the question to make it clearer that the question is actually wrong. I did not change the title because it would change the meaning of the answers.