Source a file by using the dot operator . not the word source
The operator reads and executes commands from a filename argument in the current shell context.
-
Using the dot operator
.is POSIX compliant. -
Using the keyword
sourceisn't POSIX compliant.
Yes:
. fooNo:
source foo