CoCoA:GetEnv

From ApCoCoAWiki

GetEnv

access shell variables

Description

This function returns the value of system shell variables

Example

  GetEnv(<quotes>HOME</quotes>);
/Users/bigatti
-------------------------------
  GetEnv(<quotes>COCOARC</quotes>);
/Users/bigatti/.cocoarc
-------------------------------
  GetEnv(<quotes>COCOA_PACKAGES</quotes>);
/Applications/CoCoA-4.7/packages
-------------------------------

Syntax

GetEnv(S:STRING):STRING
   <type>string</type>