Get the value of an environment variable

getenv x     getenv[x]

where x is a symbol atom naming an environment variable, returns its value.

q)getenv `SHELL
"/bin/bash"
q)getenv `UNKNOWN      / returns empty if variable not defined
""