Revision [1204]

Last edited on 2010-02-15 08:53:09 by DavidLee
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
Deletions:
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. Unlike the XPATH variable, however, the PATH variable is interpreted identically to the OS on which xmlsh runs. That is, it is a single string of path (directory) components seperated by the OS path seperator.
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


Revision [1201]

The oldest known version of this page was created on 2010-02-13 07:39:19 by DavidLee
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki