Arbortext Command Language > Commands > source
  
source
sourcefilename
This command reads and executes a list of commands from file filename. Reading of the file terminates if a command has an error or if a return statement is executed.
If the specified file name does not contain any slashes and is not found in the current directory, the source command searches the list of directories specified by the set loadpath command. The extension .acl is appended to the file name if it has no extension. For example, if you have a file called myfuncs.acl in a directory called packages in your home directory, the following will find your file myfuncs.acl:
append_load_path("~/packages")
source myfuncs
If the file filename ends with the .js extension, then filename is passed to the JavaScript interpreter using the js_source function. The JavaScript program is evaluated in the global scope with the arguments global object set to null.
If the file filename ends with the .vbs extension, the file will be run using the vbscript.dll script engine using COM.
The abbreviation of source is sou.
Examples
sou cmd.fil
sou /ati/doc/publ/pubdoc.acl
Related Topics
append_load_path function
set javascriptinterpreter command
Opening, referencing, and saving files
Testing and debugging ACL scripts