What is the difference between
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
The above executes the script. When the script is done, any changes that it made to the environment are discarded.
The above sources the script. It is as if the commands had been typed in directly. Any environment changes are kept.
This also sources the script. The
source command is not required by POSIX and therefore is less portable than the shorter