Accessing command line arguments

to access the arguments used when the application was invoked use the builtin getarg() function

e.g.

a = getarg(n)

Accessing the shell environment

to access the environment variables belonging to the shell used to invoke the application use the builtin getenv() function. Note the parameter to this function is the name of the environment variable required. The result is the value of the environment variable found.

e.g.

if the environment variable "TERM=vt100" then

env_var_name = "TERM"
a = getenv(env_var_name)

sets a = "vt100"