diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-14 04:34:43 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-14 04:34:43 +0000 |
commit | ce175376b2a0460d746270831d35240595cac276 (patch) | |
tree | 4db0e4a9b7f8a22513a4fd558425cb0fbaf5eb57 /sample | |
parent | 1ad26ccf354816b68273e0d9c82594fbcf009f29 (diff) | |
download | ruby-ce175376b2a0460d746270831d35240595cac276.tar.gz |
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r-- | sample/irb.rb | 3 |
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__) |