Reference/getenv

From Kx Wiki
Revision as of 04:48, 13 April 2010 by Chris Burke (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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