summaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-12 09:07:57 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-12 09:07:57 +0000
commita6dcd4ff38476c301f3385a3999fb6452bd462c7 (patch)
treec0805e6c95d6396e28e6129d88905c4dee085f4e /sample
parent23d67024ca56858b2fd6bfb95156f2355bc0a2b5 (diff)
downloadruby-a6dcd4ff38476c301f3385a3999fb6452bd462c7.tar.gz
ruby-a6dcd4ff38476c301f3385a3999fb6452bd462c7.tar.xz
ruby-a6dcd4ff38476c301f3385a3999fb6452bd462c7.zip
2000-05-12
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/irb.rb28
-rw-r--r--sample/rbc.rb2
2 files changed, 29 insertions, 1 deletions
diff --git a/sample/irb.rb b/sample/irb.rb
new file mode 100644
index 000000000..38d184dfd
--- /dev/null
+++ b/sample/irb.rb
@@ -0,0 +1,28 @@
+#!/usr/bin/env ruby
+#
+# irb.rb - intaractive ruby
+# $Release Version: 0.6 $
+# $Revision$
+# $Date$
+# by Keiju ISHITSUKA(Nippon Rational Inc.)
+#
+# --
+# Usage:
+#
+# irb.rb [options] file_name opts
+#
+#
+
+require "irb/main"
+
+if __FILE__ == $0
+ IRB.start(__FILE__)
+else
+ # check -e option
+ tmp = ENV["TMP"] || ENV["TMPDIR"] || "/tmp"
+ if %r|#{tmp}/rb| =~ $0
+ IRB.start(__FILE__)
+ else
+ IRB.initialize(__FILE__)
+ end
+end
diff --git a/sample/rbc.rb b/sample/rbc.rb
index 9f1ab9443..2c18d823a 100644
--- a/sample/rbc.rb
+++ b/sample/rbc.rb
@@ -413,7 +413,7 @@ module BC_APPLICATION__
ch = chrs.shift
case ch
- when /[_~*$?!@/\\;,.=:<>"]/ #"
+ when /[_~*$?!@\/\\;,.=:<>"]/ #"
return
when "-"