octave: Environment Variables

 
 36.7 Environment Variables
 ==========================
 
  -- : getenv (VAR)
      Return the value of the environment variable VAR.
 
      For example,
 
           getenv ("PATH")
 
      returns a string containing the value of your path.
 
      See also: Seesetenv XREFsetenv, Seeunsetenv XREFunsetenv.
 
  -- : setenv (VAR, VALUE)
  -- : setenv (VAR)
  -- : putenv (...)
      Set the value of the environment variable VAR to VALUE.
 
      If no VALUE is specified then the variable will be assigned the
      null string.
 
      See also: Seeunsetenv XREFunsetenv, Seegetenv XREFgetenv.
 
  -- : STATUS = unsetenv (VAR)
      Delete the environment variable VAR.
 
      Return 0 if the variable was deleted, or did not exist, and -1 if
      an error occurred.
 
      See also: Seesetenv XREFsetenv, Seegetenv XREFgetenv.
 
  -- : HOMEDIR = get_home_directory ()
      Return the current home directory.
 
      On most systems, this is equivalent to ‘getenv ("HOME")’.  On
      Windows systems, if the environment variable ‘HOME’ is not set then
      it is equivalent to ‘fullfile (getenv ("HOMEDRIVE"), getenv
      ("HOMEPATH"))’
 
      See also: Seegetenv XREFgetenv.