mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00

class is available (e.g. defining singleton class for Fixnums). * eval.c (proc_call): ignore block to `call' always, despite of being orphan or not. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
18 lines
274 B
Ruby
18 lines
274 B
Ruby
# Env.rb -- imports environment variables as global variables, Perlish ;(
|
|
# Usage:
|
|
#
|
|
# require 'Env'
|
|
# p $USER
|
|
# $USER = "matz"
|
|
# p ENV["USER"]
|
|
|
|
require 'importenv'
|
|
|
|
if __FILE__ == $0
|
|
p $TERM
|
|
$TERM = nil
|
|
p $TERM
|
|
p ENV["TERM"]
|
|
$TERM = "foo"
|
|
p ENV["TERM"]
|
|
end
|