getShellEnvVar
getShellEnvVar( t_UnixShellVariableName ) =>t_value/nil
Description
Returns the value of a UNIX environment variable, if it has been set. This function expands the environment variable name specified in the argument.
Arguments
Value Returned
Examples
Returns the current value of the SHELL environment variable.
getShellEnvVar("SHELL")
=> "/bin/csh"
setShellEnvVar("ITER" "1")
=> t
setShellEnvVar("EDITOR_COPY_$ITER" "$EDITOR")
=> t
getShellEnvVar("EDITOR_COPY_$ITER")
=> "gedit"
unsetShellEnvVar("EDITOR_COPY_$ITER")
=> t
getShellEnvVar("EDITOR_COPY_$ITER")
=> nil
Related Topics
Return to top