Bash:Source
lastmod 2014-10-01created 2014-10-012 edits
In Bash, the source command reads the commands in filename.
The basic syntax is as follows.
Characteristics
It has the following characteristics.
- The current shell's environment variables are reset.
- When a file is run with the
sourcecommand, all variables set in that file become part of the current shell.
Alternative
Using . instead of source has the same effect. That is,
and
have the same effect.