envLoadVals
envLoadVals(
?envFile t_fileName
[ ?tool t_toolName ]
)
=> t / nil
Description
Specifies that a set of environment variables is to be loaded from a specified file.
This file name is added to the list of files to search, which is set to your_install_dir/local/.cdsenv and ~/.cdsenv upon startup. When a new tool is loaded, the list of files are searched for the specified tool’s variables. The variables for each subsequent file on the list overwrite any previous file values.
Specify a customized .cdsenv file for t_fileName.
Arguments
|
t_fileName
|
The name of the file from which a set of environment variables is to be loaded.
|
|
t_toolName
|
The tool for which you want the environment variables to be loaded. The default is an empty string (""). If no tools are specified, all the variables associated with the tools that are already loaded gets loaded from the specified file. If "
ALL
" is specified as toolName, the variables from all tools listed in this file gets loaded (possibly for the first time). Only if "
ALL
" is not specified as the tool name, the file is added to the list of files to load from when a new tool is invoked, following the .cdsenv files in your_install_dir/etc/tool directory, your_install_dir/local directory, and the home directory.
|
Values Returned
|
t
|
The file is added to the list of files to search.
|
|
nil
|
The file could not be added to the list of files to search.
|
Related Topics
envCyclicStringToIndex
envLoadFile
Cdsenv Editor Functions
Return to top