diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-18 16:57:36 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-18 16:57:36 +0000 |
commit | c04ef9321c664a18eb8452635848b801c7e3dbbf (patch) | |
tree | b35d951d6831319efeac6b2b5bc9aacd9dc2d399 /bin | |
parent | 734665d3a963ebb76a6d6710a636b7d8b0d4ecb9 (diff) | |
download | ruby-c04ef9321c664a18eb8452635848b801c7e3dbbf.tar.gz |
* bin/irb: Moved from sample/irb.rb.
* instruby.rb: Install script files under bin/ with ruby's program
prefix and suffix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bin')
-rw-r--r-- | bin/irb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/irb b/bin/irb new file mode 100644 index 0000000000..58f3699139 --- /dev/null +++ b/bin/irb @@ -0,0 +1,21 @@ +#!/usr/bin/env ruby +# +# irb.rb - intaractive ruby +# $Release Version: 0.7.3 $ +# $Revision$ +# $Date$ +# by Keiju ISHITSUKA(keiju@ishitsuka.com) +# + +require "irb" + +if __FILE__ == $0 + IRB.start(__FILE__) +else + # check -e option + if /^-e$/ =~ $0 + IRB.start(__FILE__) + else + IRB.initialize(__FILE__) + end +end |