summaryrefslogtreecommitdiff
path: root/sample/irb.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-14 04:34:43 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-14 04:34:43 +0000
commitce175376b2a0460d746270831d35240595cac276 (patch)
tree4db0e4a9b7f8a22513a4fd558425cb0fbaf5eb57 /sample/irb.rb
parent1ad26ccf354816b68273e0d9c82594fbcf009f29 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/irb.rb')
-rw-r--r--sample/irb.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/sample/irb.rb b/sample/irb.rb
index 38d184dfd0..6746c59d42 100644
--- a/sample/irb.rb
+++ b/sample/irb.rb
@@ -19,8 +19,7 @@ if __FILE__ == $0
IRB.start(__FILE__)
else
# check -e option
- tmp = ENV["TMP"] || ENV["TMPDIR"] || "/tmp"
- if %r|#{tmp}/rb| =~ $0
+ if /^-e$/ =~ $0
IRB.start(__FILE__)
else
IRB.initialize(__FILE__)