Logo

Programming-Idioms

History of Idiom 205 > diff from v20 to v21

Edit summary for version 21 by nopeslide:
New Erlang implementation by user [nopeslide]

Version 20

2019-10-01, 08:39:29

Version 21

2019-10-02, 07:23:08

Idiom #205 Get an environment variable

Read an environment variable with the name "FOO" and assign it to the string variable foo. If it does not exist or if the system does not support environment variables, assign a value of "none".

Idiom #205 Get an environment variable

Read an environment variable with the name "FOO" and assign it to the string variable foo. If it does not exist or if the system does not support environment variables, assign a value of "none".

Extra Keywords
envvar os system
Extra Keywords
envvar os system
Code
Foo = os:getenv("FOO","none").
Doc URL
http://erlang.org/doc/man/os.html#getenv-2