summaryrefslogtreecommitdiff
path: root/sample/irb.rb
diff options
context:
space:
mode:
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 38d184dfd0b..6746c59d429 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__)