>>>>> "D" == DaVinci  <bombadil / wanadoo.es> writes:

D> 	Is it a bug in Ruby?

 No, this is because NameError is now a sub-class of ScriptError, which is
 a sub-class of Exception.

 In 1.4 NameError was a subclass of StandardError

 You can , perhaps, replace

    rescue

 with

    rescue NameError

 in occur2.rb


Guy Decoux