Revision [1201]

This is an old revision of VariablePATH made by DavidLee on 2010-02-13 07:39:19.

 

PATH Variable


Similar to the 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.



Example: Set the PATH variable to the directory C:/xmlshscripts
PATH=C:/xmlshscripts


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





Variables
VariableXPATH
CommandExecution
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki