Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » system facilities » getenv
next | previous | forward | backward | up | index | toc

getenv -- get value of environment variable

Description

getenv s yields the value associated with the string s in the environment.

i1 : getenv "HOME"

o1 = /home/m2user

Ways to use getenv:

  • getenv(String)

For the programmer

The object getenv is a compiled function.


The source of this document is in /build/reproducible-path/macaulay2-1.25.05+ds/M2/Macaulay2/packages/Macaulay2Doc/ov_system.m2:769:0.