Wiki source for BuiltinVariables


Show raw source

======Builtin Variables======

The shell maintains several builtin variables which have special meaning.

- HOME
- Full path to the users home directory
- PS1
- Primary prompt. Expands basic variables
- PWD (readonly)
- Current Directory
- PATH
- Sequence variable of directories to search for external commands.
- RANDOM
- Read only variable that expands to random number from 0-32767
- RANDOM32
- Read only variable that expands to random number from 0-4294967295
- RANDOM64
- Read only variable that expands to random number from 0-9223372036854775807 (only 63 bits to keep unsigned)
- TMPDIR
- System temporary directory
- XMLSH
- The xmlsh installation directory
- XMODPATH
- Sequence variable of directories to search for [[Modules xmlsh modules]]
- XPATH
- Sequence variable of directories to search for xmlsh commands.

====Startup====
On startup the following variables are read from the system environment and treated specially.
- PATH
- The PATH variable is parsed using the system path seperator (";" on windows, ":" on unix) and a sequence variable PATH is created.
- XPATH
- The XPATH variable is parsed using the system path seperator (";" on windows, ":" on unix) and a sequence variable XPATH is created.
- HOME
- If the HOME variable is set it is used to intialize the HOME variable, otherwise the java "user.home" property is used for HOME.
- XMODPATH
- The XMODPATH variable is parsed using the system path seperator (";" on windows, ":" on unix) and a sequence variable XMODPATH is created.
- XMLSH_SAXON_EE
- If set then the value is treated as a boolean (true/false or 0/1) and used as the argument to "new Processor()". This can be used to disable [[SaxonEE Saxon EE]] support even if the saxon9ee.jar and a valid saxon-license.lic file is found.
- XLOGFILE
- if **XLOGFILE** is specified then it is used as the log file. See [[Logging]]
- XDISABLE_LOGGING
- if set and equal to "1" or "true" then logging is disabled. See [[Logging]]
- XLOG4JPATH
- if **XLOG4JPATH** is set it is used as the log4j configuration file. See [[Logging]].
- XMLSHRC
- if **XMLSHRC** is set and refers to an existing readable file it is read at startup and executed in the current shell


----

See Also [[Variables]]
See Also [[SaxonSupport Saxon Support]]
See Also [[BasicSyntax Basic Syntax]]
See Also [[CoreSyntax Core Syntax]]
See Also [[Logging]]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki