summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-07 03:20:53 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-07 03:20:53 +0000
commit3043170b14875ce53f3a951d665279b12c2c63a8 (patch)
tree5903ff25972c6d5399725ec7ad14fe25df9026f6 /ruby.c
parent1ec4d9d3e47132a4eeacc1a45a9e0bf1159ab3c8 (diff)
downloadruby-3043170b14875ce53f3a951d665279b12c2c63a8.tar.gz
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index d848160c6f..783695ef97 100644
--- a/ruby.c
+++ b/ruby.c
@@ -255,6 +255,7 @@ require_libraries()
free(list);
list = tmp;
}
+ req_list_head.next = 0;
ruby_eval_tree = save[0];
ruby_eval_tree_begin = save[1];
ruby_sourcefile = orig_sourcefile;
@@ -638,7 +639,6 @@ proc_options(argc, argv)
rb_compile_string(script, e_script, 1);
}
else if (strlen(script) == 1 && script[0] == '-') {
- require_libraries();
load_stdin();
}
else {
@@ -925,6 +925,7 @@ ruby_prog_init()
ruby_sourcefile = "ruby";
rb_define_variable("$VERBOSE", &ruby_verbose);
rb_define_variable("$-v", &ruby_verbose);
+ rb_define_variable("$-w", &ruby_verbose);
rb_define_variable("$DEBUG", &ruby_debug);
rb_define_variable("$-d", &ruby_debug);
rb_define_readonly_variable("$-p", &do_print);