2020-03-05 21:50:06 +00:00
|
|
|
# source
|
|
|
|
# Execute commands from a file in the current shell
|
|
|
|
|
|
|
|
# This is a shell built-in, available within most if not all shells. However, -
|
|
|
|
# it may only be available as `.` in some older shells, such as Bourne shell.
|
|
|
|
# Its first argument is a file, with all proceeding arguments being parameters
|
|
|
|
# to the aforementioned file.
|
|
|
|
|
|
|
|
# Run shell code residing within FILE as though you'd entered it in yourself.
|
2019-11-13 16:08:03 +00:00
|
|
|
source FILE
|
2020-03-05 21:50:06 +00:00
|
|
|
# The above can be written in short-hand, for the same effect, shell allowing.
|
2019-11-13 16:08:03 +00:00
|
|
|
. FILE
|
2020-03-05 21:50:06 +00:00
|
|
|
|
|
|
|
# Source FILE with the given arguments to said file.
|
|
|
|
source FILE Argument_1 Argument_2 Argument_3 ...
|