Bug #3634: irb -d does not set $VERBOSE to true
http://redmine.ruby-lang.org/issues/show/3634

Author: Andrew Grimm
Status: Open, Priority: Normal
Target version: 1.9.2
ruby -v: ruby 1.9.2dev (2010-07-30 revision 28788) [x86_64-darwin10.2.0] 

Thanks to feature #1832, irb -w sets $VERBOSE to true. However, this did not update irb -d to setting $VERBOSE to true.

If irb -w sets $VERBOSE to true, and ruby -d sets $VERBOSE (as well as $DEBUG) to true, then irb -d should set $VERBOSE (as well as $DEBUG) to true.

Attached is a patch that should set $VERBOSE to true for "irb -d" (I haven't tested it myself). I did not add any unit tests because I couldn't find an equivalent of test/ruby/test_parse.rb for irb.


----------------------------------------
http://redmine.ruby-lang.org