suve

awful: function: getenv

Declaration

string :getenv ( string $VARNAME )

Summary

Returns the value of environment variable with given name.

Example

# Check which user is running the script.
!if :eq s'root' :getenv s'USER'
    :writeln s'You idiot, why are you running this from a superuser account!?'
    :exit
    !fi

wikipage modified on 2014/0601/2317