getenv

Command: getenv


Synopsis
string getenv -> path true
string getenv -> false

Description
getenv checks if the string is an environment variable. If
this is the case the path of the variable and true is pushed on the stack
otherwise a false is pushed on the stack and the string is lost.

File
sli/slistartup.cc
Author
docu by Marc Oliver Gewaltig and Sirko Straube

Remarks
if getenv is used with the wrong argument (e.g. integer)
the SLI Session is terminated

Examples


SLI ] (HOME) getenv
SLI [2] pstack
true
(/home/gewaltig)

SLI ] (NONEXISTING) getenv =
false

SLI ] (SLIDATADIR) getenv
SLI [2] { (Using root path: ) =only = }
SLI [3] { (Warning: $SLIDATADIR undefined) =}
SLI [4] ifelse
Using root path: /home/gewaltig/nest/release/release

SLI ] (/home) getenv
false

SeeAlso