10.1;source, revision 1.0, 88/01/21
source -- Execute a Shell script at the current Shell level.
usage: source script_name [arg1...]
DESCRIPTION
source allows you to execute a shell script at the current shell level.
When you type
$ my_script arg1
your script runs in a new (subordinate) shell level. This means that all
variables are now defined at a new level; that your script can't delete
or otherwise affect variables at the level above; that state settings
like von/bon/eon that the script sets vanish when the script finishes,
and so forth.
On the other hand, typing
$ source my_script arg1
executes the script at the current shell level, just as though you had
typed the contents of my_script into the process input window (and filled
in the command-line arguments yourself). If the script says von, then
von is set after the script exits. If it defines a variable, that
variable still is defined, etc. The return command is a special case and
is not executed at the same level.
ARGUMENTS
script_name (required)
Specify the name of the script to be executed.
arg1... (optional)
Specify any arguments to be passed to the script.
Default if omitted: no arguments passed