CoCoA:GetEnv

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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>