source [options] [<script_file_name>] [<script_args>]
Display help.
Keep processing the script even if a previous command has returned an error. Without this option set, an error would cause script processing to abort (and the source command to exit with the error code) unless either &&
, ||
or &|
was used to handle the error.
The name of the script file to be run. If not specified (or specified with zero length, i.e. ''), the script will be read from stdin
. [filename]
The arguments to pass to the script. Any further arguments or options will be coalesced into this one. [string]
Run the specified script in the context of the current fshell instance.
The main reasons for using this command are:
To avoid the overhead of creating a separate fshell process in which to run a script.
To allow the environment variables of the executing fshell instance to be updated by a script.
Note, fshell defines an environment variable named SCRIPT_PATH
that contains the full path to the script that is currently executing. This can be used to make scripts independent of their file system location, for example:
source $SCRIPT_PATH\some.script
Copyright (c) 2006-2011 Accenture. All rights reserved.