code: private static Properties getUnixShellVariables()
          throws EnvironmentException
      {
          Properties properties = new Properties();
          String cmdExec = getUnixEnv();
  
          int exitValue = readEnvironment( cmdExec, properties );
  
          // Check that we exited normally before returning an invalid output
          if( 0 != exitValue )
          {
              throw new EnvironmentException( "Environment process failed  with non-zero exit code of " + exitValue );
          }
  
          return properties;
      }
docs: Adds a set of Windows variables to a set of properties.
  
  @return the environment properties
  
  @throws EnvironmentException if an error occurs