summaryrefslogtreecommitdiffstats
path: root/bin/irb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-18 16:57:36 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-18 16:57:36 +0000
commit50a9d1db259e5ab7d952317f1c2208f393753fc4 (patch)
treeb35d951d6831319efeac6b2b5bc9aacd9dc2d399 /bin/irb
parent95e76f1a2f358684591c4416a8547ac269d265f1 (diff)
downloadruby-50a9d1db259e5ab7d952317f1c2208f393753fc4.tar.gz
ruby-50a9d1db259e5ab7d952317f1c2208f393753fc4.tar.xz
ruby-50a9d1db259e5ab7d952317f1c2208f393753fc4.zip
* bin/irb: Moved from sample/irb.rb.
* instruby.rb: Install script files under bin/ with ruby's program prefix and suffix. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bin/irb')
-rw-r--r--bin/irb21
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/irb b/bin/irb
new file mode 100644
index 000000000..58f369913
--- /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