Thanks for the issue on the variable scope, but the error message
appears when you use a more complex argument value than ‘hello’,
i.e.
try.rb -p hello works fine
but
try.rb -p ‘[a-c].*’ gives the error message
Oh, yes. This is a bug I recently stumbled upon and has been fixed.
The problem is in Getopt/Declare.rb, around line 668. There’s a:
code << ‘\b’
Just comment that out. I’ll be making a new release with that fix
soon, but I am also adding a more complex Test::Unit test suite to
catch those sort of errors.
require ‘rubygems’
puts “VERSION #{Getopt::Declare::VERSION}”
Thanks for the issue on the variable scope, but the error message
The problem is inGetopt/Declare.rb, around line 668. There’s a:
code << ‘\b’
Just comment that out. I’ll be making a new release with that fix
soon, but I am also adding a more complex Test::Unit test suite to
catch those sort of errors.
OK.
Just tried it and it worked fine.
Thanks for explanation!
Regards,
Frédéric Delanoy
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.