ExpandEnvVar is used like this:
In this example, the environment variable TMP is looked up in the environment. If TMP was not defined the value 'c:\windows\temp' is used as default value. The value found is printed using screen.putline.
(# var:^text; do 'TMP'->var[]; var->expandEnvVar (# defaultvalue:: (# do 'c:\windows\temp'->envvarvalue[] #) #)->screen.putline #)
Generaly, if the environment variable is not found in the environment defaultvalue can be used to specify a value. Note that the defaultvalue is not set in the process environment.
System Utilities - Reference Manual | © 1994-2002 Mjølner Informatics |
[Modified: Friday September 29th 2000 at 23:36]
|