lib/Env.rb


DEFINITIONS

This source file includes following functions.


   1  # Env.rb -- imports environment variables as global variables, Perlish ;(
   2  # Usage:
   3  #
   4  #  require 'Env'
   5  #  p $USER
   6  #  $USER = "matz"
   7  #  p ENV["USER"]
   8  
   9  require 'importenv'
  10  
  11  if __FILE__ == $0
  12    p $TERM
  13    $TERM = nil
  14    p $TERM
  15    p ENV["TERM"]
  16    $TERM = "foo"
  17    p ENV["TERM"]
  18  end