On a 64-bit Ubuntu server, I get

$ ruby1.9.1 --version
ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux]
$ irb1.9.1
irb(main):001:0> $VERBOSE = true
=> true
irb(main):002:0> /[A]/i
/usr/lib/ruby/1.9.1/irb/workspace.rb:80: warning: character class has
duplicated range: /[A]/
=> /[A]/i

(the problem didn't manifest when I didn't have the "i" switch)

Yet when I try the same on OS X, I get

192-168-1-2:~ agrimm$ rvm use ruby-1.9.1-p243

info: Using ruby 1.9.1 p243
192-168-1-2:~ agrimm$ irb
ruby-1.9.1-p243 > $VERBOSE = true
 => true
ruby-1.9.1-p243 > /[A]/i
 => /[A]/i

192-168-1-2:~ agrimm$ ruby --version
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10.2.0]

I'm not sure _why there's a difference. Is anyone able to replicate
the regexp giving a warning?

Andrew
Regular expressions should always generate warnings, but that's
besides the point!

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to