Environment variable


programming, operating system
A variable that is bound in the current environment. When evaluating an expression in some environment, the evaluation of a variable consists of looking up its name in the environment and substituting its value.
Most programming languages have some concept of an environment but in Unix shell scripts it has a specific meaning slightly different from other contexts. In shell scripts, environment variables are one kind of shell variable. They differ from local variables and command line arguments in that they are inheritted by a child process. Examples are the PATH variable that tells the shell the file system paths to search to find command executables and the TZ variable which contains the local time zone. The variable called “SHELL” specifies the type of shell being used.
These variables are used by commands or shell scripts to discover things about the environment they are operating in. Environment variables can be changed or created by the user or a program.
To see a list of environment variables type “setenv” at the csh or tcsh prompt or “set” at the sh, bash, jsh or ksh prompt.
In other programming languages, e.g. functional programming languages, the environment is extended with new bindings when a function’s parameters are bound to its actual arguments or when new variables are declared. In a block-structured procedural language, the environment usually consists of a linked list of activation records.
(1999-01-26)

Read Also:

  • Environs

    [en-vahy-ruh nz, -vahy-ernz, en-ver-uh nz, -vahy-ernz] /ɛnˈvaɪ rənz, -ˈvaɪ ərnz, ˈɛn vər ənz, -vaɪ ərnz/ plural noun 1. the surrounding parts or districts, as of a city; outskirts; suburbs. 2. surrounding objects; surroundings; . 3. an area or space close by; vicinity. [en-vahy-ruh n, -vahy-ern] /ɛnˈvaɪ rən, -ˈvaɪ ərn/ verb (used with object) 1. to […]

  • Envisage

    [en-viz-ij] /ɛnˈvɪz ɪdʒ/ verb (used with object), envisaged, envisaging. 1. to contemplate; visualize: He envisages an era of great scientific discoveries. 2. Archaic. to look in the face of; face. /ɪnˈvɪzɪdʒ/ verb (transitive) 1. to form a mental image of; visualize; contemplate 2. to conceive of as a possibility in the future; foresee 3. (archaic) […]

  • Envisagement

    [en-viz-ij] /ɛnˈvɪz ɪdʒ/ verb (used with object), envisaged, envisaging. 1. to contemplate; visualize: He envisages an era of great scientific discoveries. 2. Archaic. to look in the face of; face. /ɪnˈvɪzɪdʒ/ verb (transitive) 1. to form a mental image of; visualize; contemplate 2. to conceive of as a possibility in the future; foresee 3. (archaic) […]

  • Envisaging

    [en-viz-ij] /ɛnˈvɪz ɪdʒ/ verb (used with object), envisaged, envisaging. 1. to contemplate; visualize: He envisages an era of great scientific discoveries. 2. Archaic. to look in the face of; face. /ɪnˈvɪzɪdʒ/ verb (transitive) 1. to form a mental image of; visualize; contemplate 2. to conceive of as a possibility in the future; foresee 3. (archaic) […]

  • Entrenchment

    [en-trench-muh nt] /ɛnˈtrɛntʃ mənt/ noun 1. the act of . 2. an position. 3. Usually, entrenchments. an earth breastwork or ditch for protection against enemy fire. /ɪnˈtrɛntʃmənt/ noun 1. the act of entrenching or state of being entrenched 2. a position protected by trenches 3. one of a series of deep trenches constructed as a […]


Disclaimer: Environment variable definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.