summaryrefslogtreecommitdiff
path: root/lib/importenv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/importenv.rb')
-rw-r--r--lib/importenv.rb15
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/importenv.rb b/lib/importenv.rb
index 4125376..10b2891 100644
--- a/lib/importenv.rb
+++ b/lib/importenv.rb
@@ -21,9 +21,12 @@ for k,v in ENV
EOS
end
-p $TERM
-$TERM = nil
-p $TERM
-p ENV["TERM"]
-$TERM = "foo"
-p ENV["TERM"]
+if __FILE__ == $0
+ p $TERM
+ $TERM = nil
+ p $TERM
+ p ENV["TERM"]
+ $TERM = "foo"
+ p ENV["TERM"]
+end
+