SYNTAX

    source [options] [<script_file_name>] [<script_args>]


OPTIONS

-h (--help) bool

Display help.

-k (--keep-going) bool

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.


ARGUMENTS

[<script_file_name>]

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]

[<script_args>]

The arguments to pass to the script. Any further arguments or options will be coalesced into this one. [string]


DESCRIPTION

Run the specified script in the context of the current fshell instance.

The main reasons for using this command are:

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


SEE ALSO

debug


COPYRIGHT

Copyright (c) 2006-2011 Accenture. All rights reserved.