The system module allows developers to access system properties.
Part of these system properties are environment variables,
local variable to the process running Zorba, and properties defined by Zorba.
To avoid conflicts between environment variables and properties defined by Zorba,
all environment variables are prefixed with env..
For instance, the following query:
import module namespace system = "http://www.zorba-xquery.com/modules/system";
for $prop in system:properties()
return concat($prop, ": ", system:property($prop), "
")
Will output:
env.TERM_PROGRAM: Apple_Terminal
...
In this example, it is important to notice that the environnement variable PATH
with the key env.PATH.