Additions:
Similar to the [[VariableXPATH XPATH]] environment variable, the shell uses the PATH variable as a list of directories to search to find external (OS) programs.
As of version 1.0.2 xmlsh performs the following on startup.
- Converts platform specific directory seperator to "/"
- Splits the PATH variable using the OS specific path seperator charactor i
- Stores the result into the xmlsh variable PATH as a sequence of xs:string
On executing subprocesses xmlsh exports the PATH variable to the subprocess by reversing process and reconstructing the PATH variable to the OS native representation.
Note that on some OS's environment variables are case in-sensitive (Windows). In these OS's any case for PATH (such as "Path") is converted to all upper case PATH.
To set to 2 directories using a sequence constructor
PATH=(C:/xmlshscripts c:/MyDir/scripts)
Append to the PATH variable
PATH+=/my/directory
As of version 1.0.2 xmlsh performs the following on startup.
- Converts platform specific directory seperator to "/"
- Splits the PATH variable using the OS specific path seperator charactor i
- Stores the result into the xmlsh variable PATH as a sequence of xs:string
On executing subprocesses xmlsh exports the PATH variable to the subprocess by reversing process and reconstructing the PATH variable to the OS native representation.
Note that on some OS's environment variables are case in-sensitive (Windows). In these OS's any case for PATH (such as "Path") is converted to all upper case PATH.
To set to 2 directories using a sequence constructor
PATH=(C:/xmlshscripts c:/MyDir/scripts)
Append to the PATH variable
PATH+=/my/directory
Deletions:
On Windows that is ";" and on Unix/Linux/Mac that is ":".
On startup, xmlsh sets the PATH variable to an exact copy of the calling environment's PATH variable, ( but with the directory separator changed to the "/" on windows).
On executing subprocesses xmlsh exports the PATH variable to the subprocess unchanged (but with the directory separator changed to the OS directory seperator "\" on windows).
On windows, filenames may use either the native windows or unix directory seperator, but its recommended to use "/" on all OS's to avoid problems with \ being used as an escape sequence.
To set to 2 directories on windows use ";" to seperate
PATH=C:/xmlshscripts;c:/MyDir/scripts"
To set to 2 directories on a unix system (linux, unix, mac) use ":" to seperate the paths
PATH=/var/lib/xmlsh/scripts:$HOME/xmlsh