I've seen shell scripts that include a line such as:
source someOtherFile
I know that causes the content of someOtherFile
to execute, but what is the significance of source
?
Follow-up questions: Can ANY script be sourced, or only certain type of scripts? Are there any side-effects other than environment variables when a script is sourced (as opposed to normally executing it)?