up previous next
GetEnv    --    access shell variables


Syntax
GetEnv(S: STRING): STRING

Description
This function returns the value of system shell variable whose name is S.

CoCoA is normally started by its own shell script; so we recommend using "export" to make your shell variables visible to CoCoA.

Example
/**/  GetEnv("HOME");
/Users/bigatti

/**/  GetEnv("SHELL");
/bin/bash

See Also