Reference/getenv

From Kx Wiki
Jump to: navigation, search

Contents

getenv (getenv function)

Returns the value of the given environment variable.

Syntax

q)r:getenv X

Example

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

See also


For a complete list of functions, see the kdb+ Function Reference.

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox